fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4. void print_hello(int x){//формальний параметр
  5. cout<<"Hello "<<x<<endl;
  6. }
  7. double add(double x){
  8. x=x+1;
  9. return x;
  10. }
  11. int main() {
  12. // your code goes here
  13. double y=4;
  14. double z=add(y);
  15. cout<<z<<" "<<y;
  16. //cout<<sin(0)<<endl;
  17. //for (int i=0;i<10;i++) print_hello(5);//тут і фактичний
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
5 4