Saved Bookmarks
| 1. |
(b) Write a program to accept a number and display its multiplication table in proper formatupto 7 multiples |
|
Answer» Step-by-step explanation: #include INT 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); } RETURN 0; } Output Enter an integer: 9 9 * 1 = 9 9 * 2 = 18 9 * 3 = 27 9 * 4 = 36 9 * 5 = 45 9 * 6 = 54 9 * 7 = 63 9 * 8 = 72 9 * 9 = 81 9 * 10 = 90 |
|