fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. for (int i = 1; i <= 10; i++) {
  8. int k;
  9. 1 <= k <= 10;
  10. k++;
  11. cout << n << "x" << k << "=" << n * k << "\n";
  12. }
  13. cout << " " << "\t";
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5320KB
stdin
5
stdout
5x1=5
5x2=10
5x3=15
5x4=20
5x5=25
5x6=30
5x7=35
5x8=40
5x9=45
5x10=50