Write a program to print multiplication table of given number using C program- c program-class 11
Write a program to print multiplication table of given number using C program.
Solutions:
#include<stdio.h>
void main()
{
int a=1,b,c;
printf("Enter a number to find table:");
scanf("%d",&b);
do
{
c=b*a;
printf("%d * %d = %d \n",b,a,c);
a++;
}
while(a<=10);
}
0 Comments