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 5324KB
stdin
140
stdout
1x 140= 140
2x 140= 280
3x 140= 420
4x 140= 560
5x 140= 700
6x 140= 840
7x 140= 980
8x 140= 1120
9x 140= 1260
10x 140= 1400