Write a program to print the table of the given number in C

//this is a program to print the table of the given number
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1,num;

printf("\n\nEnter any number: ");
scanf("%d",&num);

do{
printf("\n%d X %d = %d",num,i,i*num);
i++;
}while(i<=10);

getch();
}

Previous
Next Post »