-
Notifications
You must be signed in to change notification settings - Fork 5
/
multiplication-table.c
60 lines (43 loc) · 1.11 KB
/
multiplication-table.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include <stdio.h>
int main() {
int number,i;
printf("Enter Any Number\n");
scanf("%d", &number);
printf("Entered number %d\n", number);
for(i = 1; i<=10; i++) {
int table= number * i;
printf("%d x %d = %d\n",number,i,table);
}
return 0;
}
//// For Kids LOL
/* #include <stdio.h>
int main() {
int number;
int num1,num2,num3,num4,num5,num6,num7,num8,num9,num10;
printf("Enter Any Number to Get the Table of\n");
scanf("%d", &number);
num1 = number * 1;
num2 = number * 2;
num3 = number * 3;
num4 = number * 4;
num5 = number * 5;
num6 = number * 6;
num7 = number * 7;
num8 = number * 8;
num9 = number * 9;
num10 = number * 10;
printf("Entered number %d\n", number);
printf("%d x 1 = %d\n",number, num1);
printf("%d x 2 = %d\n",number, num2);
printf("%d x 3 = %d\n",number, num3);
printf("%d x 4 = %d\n",number, num4);
printf("%d x 5 = %d\n",number, num5);
printf("%d x 6 = %d\n",number, num6);
printf("%d x 7 = %d\n",number, num7);
printf("%d x 8 = %d\n",number, num8);
printf("%d x 9 = %d\n",number, num9);
printf("%d x 10 = %d\n",number, num10);
return 0;
}
*/