2012-10-03T08:25:22-04:00
Input a number from user to print its table. Also, ask user to enter how many times you want to generate the table.
1
2012-10-25T11:37:59-0400
#include<iostream> #include<conio.h> using namespace std; int main() { int n,times,t,count=1;& printf("Enter any number\n\n"); scanf("%d",&n); printf("Enter number of times \n\n"); scanf("%d",×); for (int i = 0; i < times; i++) { & while(count<=10) & { & t=n*count; & printf("\n%d*%d=%d",n,count,t); & count++; & } } getch(); return 0; }
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS !
Learn more about our help with Assignments:
Adobe Flash
Comments