fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int n ;
  7. cin >> n;
  8. for(int i =1; i<=10;i++)
  9. {
  10. cout <<i << " x "<< n << " = "<< i*n << endl;
  11.  
  12. }
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. }
  20.  
Success #stdin #stdout 0.01s 5292KB
stdin
140
stdout
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