Guest User

Untitled

a guest
Jan 2nd, 2011
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using std::cout;
  4. using std::endl;
  5.  
  6. int calcula ( int a , int b) { return a + b; }
  7.  
  8. int main()
  9. {
  10.     int a = 1;
  11.     int b = 2;
  12.  
  13.     cout << "Resultado: " << calcula( a, b ) << endl;
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment