/* Continuous Multiplication Table of any number. */
#include <stdio.h>
int main()
{
int n, dummy, i;
do{
printf("Enter a number whose multiplication you want: ");
scanf("%d", &n);
for(i = 1; i <= 10; i++){
printf("%d x %d = %d\n", n, i, i*n);
}
printf("Press 0 to print more multiplication table and any other key to exit: ");
scanf("%d", &dummy);
}while(dummy == 0);
return 0;
}
Comments
Post a Comment