MarcinKrol

Zad5

Mar 24th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. //Zad5
  4.  
  5.  
  6. using namespace std;
  7. float x,y;
  8.  
  9. float SUMA(float x, float y)
  10. {
  11. float z;
  12. z=x+y;
  13. return z;
  14. }
  15.  
  16.  
  17. int main()
  18. {
  19.  
  20. cout << "Podaj 2 liczby: " << endl;
  21. cin >> x >> y;
  22. cout << "Suma wynosi: ";
  23. cout << SUMA(x,y);
  24.  
  25.  
  26.  
  27.  
  28.  
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment