fork download
  1. // Level 1 - Homework 1 - Question F - Solution 1.
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int N = 0;
  9. cin >> N;
  10.  
  11. for(int i = 1; i <= 12; ++i)
  12. cout << N << " * " << i << " = " << N * i << endl;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5280KB
stdin
1
stdout
1 * 1 = 1
1 * 2 = 2
1 * 3 = 3
1 * 4 = 4
1 * 5 = 5
1 * 6 = 6
1 * 7 = 7
1 * 8 = 8
1 * 9 = 9
1 * 10 = 10
1 * 11 = 11
1 * 12 = 12