Introduction
The program below displays multiplication table. depending upon the number entered by the user the multiplication table will be displayed.
#include<stdio.h> #include<conio.h> void main() { int a,b=0,c; clrscr(); printf("Enter a number"); scanf("%d",&a); for(int i=1;i<=10;i++) { b++; c=a*b; printf("/n %d*%d=%d",a,b,c); } getch(); }
Comments/Suggestions are invited. Happy coding......!
Comments Post a Comment