Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void suma (float a, float b)
- {
- float suma;
- suma=a+b;
- cout << suma;
- }
- int main()
- {
- float a,b;
- cout << "Podaj 1 liczbe: " << endl;
- cin >> a;
- cout << "Podaj 2 liczbe: " << endl;
- cin >> b;
- cout << "Suma wynosi: " << endl;
- suma (a,b);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement