C Program which take a number as input and print their table:
#include <stdio.h>
#include <conio.h>
main()
{
int a,c,n;
char x;
do
{
printf("Enter Number: ");
scanf("%d",&n);
printf("\n");
for(a=1;a<=10;a++)
{
c=n*a;
printf("\t%d * %d = %d\n",n,a,c);
}
printf("\nDo you want to do next y/n\n");
x=getch();
}
while(x!='n');
}
{[['
']]}

0 comments:
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.