Advertisement
wiktormadera

zad5

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