C Program to accept a number and print mathematical table of the given number

CWC
0 Min Read

C Program to accept a number and print mathematical table of the given number

# include <stdio.h>
# include <conio.h>
main( )
{
int i,t;
clrscr( );
printf(“which table u want:”);
scanf(“%d”,&t);
for (i=1; i<=10; i++)
printf(“\n%d*%d=%d”,t,i,i*t);
getch( );
}

 

Share This Article
Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

English
Exit mobile version