luc034.c (621B)
1 /* 2 * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 3 * Repo: https://github.com/notamitgamer/bsc 4 * License: MIT 5 */ 6 7 /* Write a program to print the multiplication table of the number 8 entered by the user. The table should get displayed in the following 9 form : 10 29 * 1 = 29 11 29 * 2 = 58 12 */ 13 /* Let Us C, Chap- 6, Page - 105, Qn No.: B(a) */ 14 15 #include <stdio.h> 16 int main() 17 { 18 int i, num, res; 19 printf("Enter the number : "); 20 scanf("%d", &num); 21 printf("\n--- Multiplication Table ---\n"); 22 for (i = 1; i <= 10; i++) 23 printf("%d * %d = %d\n", num, i, num * i); 24 return 0; 25 }