Try Yourself C++ Program To Print Table Of Any Given Number
C Program to Print Multiplication Table of N
#include<stdio.h>
int main() {
/*Write a C Program to Print Multiplication Table of N*/
int i, a, n;
printf("Enter The Number That You Want To Print Table \n");
scanf("%d", & n);
for (i = 1; i <= 10; i++) {
a = n * i;
printf("%d * %d = %d\n", n, i, n * i);
}
return 0;
}
0 Comments: