Make a program in C ++ that tells the form of Water whether it is Ice, Water or Steam. Display the menu also as under.

Make a program in C ++ that tells the form of Water whether it is Ice, Water, or Steam. Display the menu also as under.


Temperature Less than 0 = ICE

Temperature Greater than 0 & Less than 100 = Water

 

Temperature Greater than 100 = STEAM


Make a program in C ++ that tells the form of Water whether it is Ice, Water or Steam. Display the menu also as under.
Make a program in C ++ that tells the form of Water whether it is Ice, Water or Steam. Display the menu also as under.





SOLUTION :

#include<iostream>
using namespace std;
int main ()
{
        int temperature;
cout<<"Enter Temperature:";
cin>>temperature;
if(temperature<=0)
{
cout<<"The Water is ICE"<<endl;
}
if(temperature>0 && temperature<=100)
{
cout<<"Water"<<endl;
}
if(temperature>100)
{
cout<<"The Water is Stream"<<endl;
}
return 0;
}



 random/hot-posts 

PROGRAMMING QUESTIONS/feat-big


Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.