C PROGRAM TO PRINT MULTIPLICATION TABLE - Anna University Internal marks 2018

C PROGRAM TO PRINT MULTIPLICATION TABLE

Aim:
To write a C program to print the multiplication table.

Algorithm:
Start thr Program
Initialize b=1,c=0.
Read the table number from the user.
Calculate c=a*b,and increment b=b+1.
Display c value in a table form.
Stop the program

Program:

Output:
Enter a Number: 13
13 * 1 = 13
13 * 2 = 26
13 * 3 = 39
13 * 4 = 52
13 * 5 = 65
13 * 6 = 78
13 * 7 = 91
13 * 8 = 104
13 * 9 = 117
13 * 10 = 130

Result:
Thus the program is written and executed to display the multiplication table.

No comments:

Post a Comment