Answer to Question #215493 in C++ for Lakshitha

Question #215493

Write a funtion using C++ statements called getTotalPraduction() which takes two integer values (value1,value2) and returns the total value


1
Expert's answer
2021-07-09T03:34:27-0400
#include <iostream>
using namespace std;

int getTotalPraduction(int value1, int value2)
{
  return  value1 + value2;
}


int main()
{
    // Example work function getTotalPraduction
    cout << getTotalPraduction(10,5) << 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