fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. float pole(float a){
  6. return a * a;
  7. }
  8.  
  9. int main ()
  10. {
  11. cout << pole(5) << endl;
  12. cout << pole(1.5) << endl;
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
25
2.25