Write a program to demonstrate multiplication table input from user till 10
Program:
#include<stdio.h> #include<conio.h> void main() { int n,i; printf("Enter any no"); scanf("%d",&n); printf("Multiplication table of %d\n",n); for(i=1;i<=10;i++) { printf("%d*%d=%d\n",n,i,(n*i)); } getch(); }
Output:
Enter any no 8 Multiplication table of 8 8*1=8 8*2=16 8*3=24 8*4=32 8*5=40 8*6=48 8*7=56 8*8=64 8*9=72 8*10=80
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Program:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer