fork download
  1. #include <iostream>
  2. using namespace std;
  3. int numero;
  4. int main() {
  5. // your code goes here
  6. cout<<"inserisci un numero intero: ";
  7. cin>>numero;
  8.  
  9. for (int i=numero-9; i<=numero; i++)
  10. { for (int j=1; j<=10; j++)
  11. { cout<<i*j<<"\t";
  12. }
  13. cout<<endl;
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5264KB
stdin
2
stdout
inserisci un numero intero: -7	-14	-21	-28	-35	-42	-49	-56	-63	-70	
-6	-12	-18	-24	-30	-36	-42	-48	-54	-60	
-5	-10	-15	-20	-25	-30	-35	-40	-45	-50	
-4	-8	-12	-16	-20	-24	-28	-32	-36	-40	
-3	-6	-9	-12	-15	-18	-21	-24	-27	-30	
-2	-4	-6	-8	-10	-12	-14	-16	-18	-20	
-1	-2	-3	-4	-5	-6	-7	-8	-9	-10	
0	0	0	0	0	0	0	0	0	0	
1	2	3	4	5	6	7	8	9	10	
2	4	6	8	10	12	14	16	18	20