Sunday, December 23, 2018

PROGRAM TO DISPLAY MULTIPLICATION OF TABLE

/*PROGRAM  TO  DISPLAY  MULTIPLICATION  OF  TABLE*/

#include <stdio.h>
#include<conio.h>
void main()
{
int num, i = 1;
clrscr();
printf("Enter any Number:");
scanf("%d", &num);
printf("Multiplication table of %d: ", num);
while (i <= 10)
 {
printf("%d x %d = %d", num, i, num * i);
 i++;
}
getch();
}

Output:-
sk.

No comments:

Post a Comment

Wikipedia

Search results

Search The program