Write a program in c++ to find the sum of any five number using constructor member function
Answers
Answered by
0
Answer:
using namespace std;
- inline int sum(int a,int b,int c,int d,int e) {
- return(a+b+c+d+e); }
- inline int mul(int a,int b,int c,int d,int e) {
- return(a*b*c*d*e); }
- cout<<"\nProduct="<<mul(a,b,c,d,e); }
Similar questions
Science,
5 months ago
Biology,
5 months ago
India Languages,
11 months ago
Accountancy,
11 months ago
Math,
1 year ago
Social Sciences,
1 year ago