#include<iostream.h>
main()
{
double n;
cout<<"ENTER TEMPERATURE:";
cin>>n;
if
(WHAT SHOULD I PUT HERE?) //WHEN I INPUT 50 TO 100 IT WILL DISPLAY SUPER HOT, SAME AS THE OTHER
{
cout<<"SUPER HOT";
}
else if
(WHAT SHOULD I PUT HERE?)
{
cout<<"HOT";
}
else if
(WHAT SHOULD I PUT HERE?
{
cout<<"NORMAL";
}
else if
(WHAT SHOULD I PUT HERE?)
{
cout<<"COLD";
}
else if
(WHAT SHOULD I PUT HERE?)
{
cout<<"SUPER COLD";
}
else
{
cout<<"INVALID INPUT";
}
cout<<"\n\n";
system("pause");
return 0;
}
if( n > 0 && n < 15 )
//super cold .
if( n > 16 && n < 29 )
//cold
if( n > 30 && n < 37)
//normal
if ( n > 38 && n < 49 )
// hot
if (n > 50 && n < 100)
// super hot .
hello believeme. I have worked on your problem this morning. You need to have a clearer understanding of the logic within the if statement. I have cleared it up for you as an example. I hope it works and I hope you can learn from it and move on in your programming career. For scenarios like this I like to use a do while loop to loop through my logic without having to constantly execute it over and over to test. Good luck.