Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int sum (int a, int b)
- {
- int r;
- r = a+b;
- return r;
- }
- int main ()
- {
- int x, y, z;
- cout<<"Donnez 2 numeros ";
- cin>>x>>y;
- z = sum (x, y);
- cout<<x<<"+"<<y<<"="<<z;
- cin.sync ();
- cin.get ();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement