4th sem oopc programs usinng function in cpp
Ø Write the following programs using FUNCTION in CPP language. 1. Write a program to find sum of three numbers using functions. 1. Write a program to find sum of three numbers using functions. #include<iostream.h> #include<conio.h> int sum(int a,int b,int c){ return(a+b+c); } int main(){ int x,y,z; clrscr(); cout<<"Enter three value:"<<endl; cin>>x>>y>>z; cout<<"Sum is "<<sum(x,y,z); getch(); return 0; } 2. Write a function big to find largest of two numbers and use this function in the main program to find largest of three numbers. #include<iostream.h> #include<conio.h> int max(int,int); int max(int ,int ,int); int main(){ int a,b,c; clrscr(); cout<<"Enter a value : \n"; cin>>a>>b>>c; cout<<"Max from three value.\n"<<max(a,b,