TOPIC

Presentation error

Zulkar-nain Hunts asked 2 years ago

Can anybody tell me, where is my presentation error

int main() {

int num=1000;

while(scanf("%d",&num)!=EOF)
{
    for (int loop = 1; loop <=10; loop++)
    {
    cout << loop<<" X "<<num<< " = " <<loop*num<<"\n";
    //printf("%d X %d = %d\n",loop,num,loop*num);

    }
}
return 0;

}

Remember not post solutions. Your post may be reviewed by our moderators.

  • Aléxis Toigo replied 2 years ago

    Hello, just change the:

    cout << loop<<" X "<<num<< " = " <<loop*num<<"\n";

    Per:

    cout << loop<<" x "<<num<< " = " <<loop*num<<"\n";

    In your code the "x" of the output was uppercase but in the problem it asks for it tiny