Multiplication table of a given number
Multiplication table in C
C program for printing multiplication table :-
#include<stdio.h> #include<conio.h> main() { int i,n; printf("Enter a number to print multiplication table of:\n") ;scanf("%d",&n); for(i=1;i<=10;i++) { printf("%d * %d = %d\n",n,i,n*i); } getch(); }
Output
screenshot of output for multiplication table |
No comments