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 = n; i <= 10; i++) {
  8. for (int j = n; j <= 10; j++) {
  9. cout << i << "x" << j << "=" << i*j << "\t";
  10. }
  11. cout << "\n";
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5280KB
stdin
5
stdout
5x5=25	5x6=30	5x7=35	5x8=40	5x9=45	5x10=50	
6x5=30	6x6=36	6x7=42	6x8=48	6x9=54	6x10=60	
7x5=35	7x6=42	7x7=49	7x8=56	7x9=63	7x10=70	
8x5=40	8x6=48	8x7=56	8x8=64	8x9=72	8x10=80	
9x5=45	9x6=54	9x7=63	9x8=72	9x9=81	9x10=90	
10x5=50	10x6=60	10x7=70	10x8=80	10x9=90	10x10=100