Advertisement
LegoDrifter

OP vezbanje 1

Mar 15th, 2020
171
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.  
  5. class GreenApple{
  6.     public:
  7.     int x,y;
  8.       int suma(int x,int y)
  9.     {
  10.         return x+y;
  11.     }
  12.  
  13. };
  14.  
  15. int main()
  16. {
  17.     GreenApple Primer;
  18.     int x,y;
  19.     cin >> x;
  20.     cin >> y;
  21.     cout<< Primer.suma(x,y)<< endl;
  22.  
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement