RafalSobala

zad5

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