Answer to Question #231688 in C++ for knight_manakal

Question #231688

Using the methods

FindSum(int, int) //returns total

FindProduct(int, int) //returns the product of the two integers

Write the main method to find and print the answer of the expression;


1
Expert's answer
2021-08-31T23:51:22-0400
#include<iostream>
using namespace std;
int FindSum(int a, int b){
    int result;
    result = a + b;
    return result;
}

int FindProduct(int a, int b){
    int result;
    result = a * b;
    return result;
}
int main() {
    cout << FindSum(2,3) << endl;
    cout << FindProduct(2,3) << endl;
    return 0;
}

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 the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS