Skip to content

Commit 8741876

Browse files
authored
Merge pull request #270 from ashim058/patch-1
Create Multiplication_table.c
2 parents 95b123e + f10a964 commit 8741876

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

c/Multiplication_table.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include <stdio.h>
2+
3+
int main()
4+
{
5+
int a, b;
6+
printf("Enter first multiple: ");
7+
scanf("%i", &a);
8+
printf("Enter upto: ");
9+
scanf("%i", &b);
10+
for(int i = 1; i <= b; i++) {
11+
printf("%i * %i = %i\n", a, i, a*i);
12+
}
13+
return 0;
14+
}

0 commit comments

Comments
 (0)