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.
#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