can you tell me where am I wrong in the code…?
#include
using namespace std;
int main() {
float F,S,T;
cin>>F>>S>>T;
if(F>S && F>T)
cout<<" “<<F;
else if(S>F && S>T)
cout<<” “<<S;
else if(T>S && T>F)
cout<<” "<<T;
return 0;
}
can you tell me where am I wrong in the code…?
#include
using namespace std;
int main() {
float F,S,T;
cin>>F>>S>>T;
if(F>S && F>T)
cout<<" “<<F;
else if(S>F && S>T)
cout<<” “<<S;
else if(T>S && T>F)
cout<<” "<<T;
return 0;
}
In solution I found the use of max() function. How can I even use t without knowing as this course hasen’t taught till now the use of max(a,b) function.
Hi! To find out what I can do, say @discobot display help.