السلام عليكم
يمكن يكون السؤال بسيط بس محتاجه للتصحيح او التأكيد وعشان الباقين يستفيدو 
هذا السؤال موجود في الاوراق اللي تطبعها استاذه منى الشهري لنا في محاضرة nasted if else اخر 3#Exercise
شكراً مقدماً للجميع وجزاكم الله خيرا
[align=left]
write a c++ program that reads the water tempreture in centigrade ,then determaine the water state(ice,liquid or steam according to its tempreture)??
كود:
#include <iostream.h>
#include <conio.h>
#include <math.h>
void main()
{
int temp;
cout<<"Enter the water tempreture : ";
cin>>temp;
if (temp<100 && temp>0)
cout<<"\nthe water is liquid";
else if (temp<=0)
cout<<"\nthe water is ice";
else if (temp>=100)
cout<<"\nthe water is steam" ;
getch();
}