Advertisement
Michal_Pilarski

zad5

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