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;
              }
}
Fbody commented: If this post is any indication, with 52 posts, I'm amazed your rep isn't lower than -4. +0

Recommended Answers

All 4 Replies

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. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.