Advertisement
DawidKubiak

Zad.5

Mar 22nd, 2020
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. void suma (float a, float b)
  5. {
  6.     float suma;
  7.     suma=a+b;
  8.     cout << suma;
  9. }
  10.  
  11. int main()
  12. {
  13.     float a,b;
  14.     cout << "Podaj 1 liczbe: " << endl;
  15.     cin >> a;
  16.     cout << "Podaj 2 liczbe: " << endl;
  17.     cin >> b;
  18.     cout << "Suma wynosi: " << endl;
  19.     suma (a,b);
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement