Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int calculation();
- int main()
- {
- cout>>"I have two numbers, I want to add them together";
- int firstNumber = 5;
- int secondNumber = 7;
- int plus;
- plus = calculation(firstNumber,secondNumber);
- cout<<"the two numbers added together are"<<endl;
- cout<<plus;
- }
- int calculation(int a, int b)
- {
- int response;
- response = a+b;
- return response;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement