66 896
Assignments Done
99,1%
Successfully Done
In October 2018

Answer to Question #26890 in C++ for Calvin

Question #26890
A program with a function Add that takes two parameters and returns their sum, then call the function from the main
Expert's answer
#include <iostream>

using namespace std;

// function that takes two parameters and returns their sum
int Add(int a, int b)
{
return a +b;
}

void main()
{
// callfunction Add and print the result
cout<< "5 + 9 = " << Add(5,9);
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions