To find the largest number of three numbers i have included every thing

#include
using namespace std;
int main() {

float a, b, c;
cin >> a;
cin >> b;
cin >> c;
if (a > b && a > c)
{
    cout << "the greatest no. is " << a;
}
else if (b > a && b > c)
{
    cout << "the greatest no. is " << b;
}
else
{
    cout << "the greatest no. is " << c;
}
cout<<endl;
return 0;

}

"the greatest no. is "
this thing is not expected to be printed…
so just write
cout<<a;
cout<<b;
cout<<c;

it will work fine then…

i hope ur doubt is cleared now??

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.