create c++ Program to find the maximum between two numbers
Answers
Answered by
0
#include<iostream.h>
main()
{
int a, b, max;
cout<<"\n\t Enter the value of a : ";
cin>>a;
cout<<"\n\t Enter the value of b : ";
cin>>b;
max = (a>b)? a : b;
cout<<"\n\t Maximum number is "<<max;
return 0;
}
main()
{
int a, b, max;
cout<<"\n\t Enter the value of a : ";
cin>>a;
cout<<"\n\t Enter the value of b : ";
cin>>b;
max = (a>b)? a : b;
cout<<"\n\t Maximum number is "<<max;
return 0;
}
Similar questions