Advertisement
Guest User

Untitled

a guest
May 26th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. float suma(float a, float b, float c)
  5. {
  6. return a + b + c;
  7. }
  8. int main()
  9. {
  10. float a, b, c;
  11. cout << "Podaj trzy liczby do zsumowania" << endl;
  12. cin >> a;
  13. cin >> b;
  14. cin >> c;
  15. cout << suma(a, b, c);
  16. system("PAUSE");
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement