#include <iostream.h>
#include <conio.h>
main()
{
float suhu;
cout<<"masukkan besarnya suhu : ";
cin>>suhu;
//melakukan pengecekan terhadap suhu
if(suhu<0)
cout<<"air akan berwujud :"<<"padat (es)"<<endl;
else
if((suhu>0)&&(suhu<100))
cout<<"air akan berwujud :"<<"cair"<<endl;
else
cout<<"air akan berwujud :"<<"gas"<<endl;
getch();
}
Posting Komentar