Program to print table of given number
#include<stdio.h>
void main()
{
int i=1,num;
printf("\nenter the number:");
scanf("%d",&num);
while(i<=10)
{
printf("\n%d*%d=%d",num,i,i*num);
i=i+1;
}
}
void main()
{
int i=1,num;
printf("\nenter the number:");
scanf("%d",&num);
while(i<=10)
{
printf("\n%d*%d=%d",num,i,i*num);
i=i+1;
}
}
Comments
Post a Comment