#include <stdio .h> void main() { int n, i; printf("Enter the number:"); scanf("%d",&n); for(i=1; i<=10; ++i) printf("%d * %d = %d \n", i, n, n*i); }
Output:
Enter the number:51 * 5 = 5
2 * 5 = 10
3 * 5 = 15
4 * 5 = 20
5 * 5 = 25
6 * 5 = 30
7 * 5 = 35
8 * 5 = 40
9 * 5 = 45
10 * 5 = 50
No comments:
Post a Comment