fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5.  
  6. // dato un valore in input calcolare il quadrato e il cubo e stampare i risultati
  7.  
  8. int x=6;
  9.  
  10.  
  11.  
  12.  
  13.  
  14. int main() {
  15.  
  16. cin>>x;
  17. cout<<"x*x"<<endl;
  18. cout<<"x*x*x"<<endl;
  19.  
  20.  
  21.  
  22. return 0;
  23.  
  24.  
  25.  
  26. }
Success #stdin #stdout 0.01s 5296KB
stdin
Standard input is empty
stdout
x*x
x*x*x