fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n, i, multi;
  7. cin >> n;
  8. for(i=1; i<=10; i++)
  9. multi = n * i;
  10. cout << n << " * " << i << " = " << multi << '\n';
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 5284KB
stdin
2
1
stdout
2 * 11 = 20