plz chk
#include <iostream>
using namespace std;
main()
{
int a;
int b;
cin >>a;
cin >>b;
int i;
for(i=1; int<=b;i=i+1)
{
cout <<a<<"*"<<i<<"="<<a*i;
}
}
plz chk
#include <iostream>
using namespace std;
main()
{
int a;
int b;
cin >>a;
cin >>b;
int i;
for(i=1; int<=b;i=i+1)
{
cout <<a<<"*"<<i<<"="<<a*i;
}
}
Check what?
its giving error at line11
Since you're not telling me the error, I can only guess what it is and hope I get it right. It's probably telling you "Undeclared identifier 'int' ".
In case you haven't already gathered, yes I am stringing you along.
In the for loop, check the condition. You say int<=b; when you really mean i<=b;
Sorry Fbody, I missed your last post. :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.