fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. // zdefiniuj funkcję
  5. int ile(int k) {
  6. return k*k;
  7. }
  8. int main() {
  9.  
  10. cout<<ile(5)<<endl;
  11.  
  12. cout<<ile(6)<<endl;
  13. // sprawdź działanie funkcji
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
25
36