1st Code :
#include
using namespace std;
int max(int first, int second){
return(first>second) ? first: second;
}
int main(){
int larger=max(1,2) ;
cout<<larger;
return 0;
}
2nd code:
#include
using namespace std;
int main(){
cout<<"Enter two integers x and y: ";
double first;
double second;
cin>>first;
cin>>second;
cout<<first+second;
return 0;
}