Files
C-Projects/MultiplicationTable.c

10 lines
232 B
C

// 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);
}
}