Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- float suma(float a, float b, float c)
- {
- return a + b + c;
- }
- int main()
- {
- float a, b, c;
- cout << "Podaj trzy liczby do zsumowania" << endl;
- cin >> a;
- cin >> b;
- cin >> c;
- cout << suma(a, b, c);
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement