MultiplicationTable

This commit is contained in:
2021-04-27 11:09:59 +05:30
parent 3be2b4d584
commit 7b81e069f7
3 changed files with 12 additions and 1 deletions

10
MultiplicationTable.c Normal file
View File

@@ -0,0 +1,10 @@
// WAP to print the multiplication table for a given number.
void main() {
int n, i;
printf("Enter an integer: ");
scanf("%d", &n);
for (i = 1; i <= 10; ++i) {
printf("%d * %d = %d \n", n, i, n * i);
}
}