Q:

Write a program to demonstrate multiplication table input from user till 10

0

Write a program to demonstrate multiplication table input from user till 10

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C Programming Exercises With Solutions

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Write a program to demonstrate addition of two mat... >>
<< Write a program in which you declare variable of a...