C++ Program to generate table of any given number. This program accepts a input from the user and generate a table of given number.
main()
{
clrscr();
int num;
cout <<"enter any number";
cin >> num;
for (int i=1;i<=10;i++)
{
cout << num * i <<endl;
}
getch();
}
No comments:
Post a Comment