Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int soma(int a, int b){
  6. int result = a + b;
  7. return (result);
  8. }
  9.  
  10. int main ()
  11. {
  12. int numberA, numberB;
  13. cout << "Digite dois valores: ";
  14. cin >> numberA >> numberB;
  15.  
  16. cout << numberA << " + " << numberB << " = "<< soma(numberA, numberB);
  17.  
  18.  
  19. //cin >> ;
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement