Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int soma(int a, int b){
- int result = a + b;
- return (result);
- }
- int main ()
- {
- int numberA, numberB;
- cout << "Digite dois valores: ";
- cin >> numberA >> numberB;
- cout << numberA << " + " << numberB << " = "<< soma(numberA, numberB);
- //cin >> ;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement