#include<iostream.h>
void main()
{
float a;
int i;
cout<<"Enter a number : ";
cin>>a;
for(i=1; i<=10; i++){
cout<< a<<" * "<< i<<" ="<< a * i<<endl;
}
}
Output:
Enter a number : 21
21 * 1 =21
21 * 2 =42
21 * 3 =63
21 * 4 =84
21 * 5 =105
21 * 6 =126
21 * 7 =147
21 * 8 =168
21 * 9 =189
21 * 10 =210 |