Input
The input is an integer N (1 < N < 1000).
Output
Print the multiplication table of N., like the following example.
| Input Sample | Output Sample | 
140 
 | 
1 x 140 = 140 
2 x 140 = 280 3 x 140 = 420 4 x 140 = 560 5 x 140 = 700 6 x 140 = 840 7 x 140 = 980 8 x 140 = 1120 9 x 140 = 1260 10 x 140 = 1400  | 
Solution using C :
#include <stdio.h>
int main() {
    int N,i;
    scanf("%d",&N);
    for(i=1; i<=10; i++)
        printf("%d x %d = %d\n",i,N,i*N);
    return 0;
} 


Comments
Post a Comment