write a program that input a number and display its table
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{ int n,c;
c=1;
cout<<"Enter a number to get table"<<endl;
cin>>n;
while(c<=10)
{cout<<n<<"*"<<c<<" = "<<n*c<<endl;
c++;
} getch();
}
No comments:
Post a Comment