Chemistry, asked by surajpuja1252, 11 months ago

Write a program in c++ to find the sum of any five number using constructor member function

Answers

Answered by Anonymous
0

Answer:

using namespace std;

  1. inline int sum(int a,int b,int c,int d,int e) {
  2. return(a+b+c+d+e); }
  3. inline int mul(int a,int b,int c,int d,int e) {
  4. return(a*b*c*d*e); }
  5. cout<<"\nProduct="<<mul(a,b,c,d,e); }
Similar questions