write a program in c to print table of 7
Answers
Answered by
0
C Program to print table of 7
#include <stdio.h>
int main() {
int i, num;
printf("Enter the number to print table: ");
scanf("%d", &num);
for(i=1; i<=10; i++)
printf("%d * %d = %d\n", num, i, (num*i));
return 0;
}
OUTPUT
Enter rhe number to print table: 7
7 * 1 = 7
7 * 2 = 14
7 * 3 = 21
7 * 4 = 28
7 * 5 = 35
7 * 6 = 42
7 * 7 = 49
7 * 8 = 56
7 * 9 = 63
7 * 10 = 70
NOTE: Program has been run on VS Códe in the above attachment.
Attachments:
Similar questions