Hi, I'm new here and I have one little problem. We have to make a program which need to show out the bigger number (from three numbers). I can make this with function if(), but we need to make without if().
This is for two number:
#include<iostream.h>
#include<math.h>
int main()
{
double y,x0,x1;
cout<<"insert two different numbers"<<endl;
cin>>x0;
cin>>x1;
y=0.5*(x0+x1+fabs(x0-x1));
cout<<"max= "<<y<<endl;
return 0;
}
but when I try with three a something make wrong. Thank you in advance