//Program Menentukan ujud air;
#include
#include
int main()
{
int t;
char quit;
//cout<<"temperatur= ";cin>>t;
printf("temperatur= ");scanf("%d",&t);
// periksa nilai t
if (t<=0)
{
printf("t= %d air berwujud padat\n",t);
}
else // t>0
{
//periksa
nilai determinan
if
((t>0)&& (t<100 p="">
{
//cout<<"t= "<
100>
printf("t= %d air berwujud cair\n",t);
}
else
{
printf("t= %d air berwujud gas\n", t);
}
}
cin>>quit;
return 0;
}