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

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

Output:

No comments:

Post a Comment

100 C Programs with Code and Output

Program 1: C Program To Read Two Numbers And Print The Sum Of Given Two Numbers. Program 2: C Program To Read Three Numbers And Prin...