MESSAGES ARE SHOWN BELLOW :-
Temp < 0 then Freezing weather
Temp 0-10 then Very Cold weather
Temp 10-20 then Cold weather
Temp 20-30 then Normal in Temp
Temp 30-40 then Its Hot
Temp >=40 then Its Very Hot .
MAIN PROGRAM :-
#include <stdio.h>
int main()
{
int temp;
printf("enter the temparature in centigrade scale=");
scanf("%d",&temp);
if(temp<0)
{
printf("Freezing weather");
}
else if(temp>=0&&temp<10)
{
printf("Very Cold weather");
}
else if(temp>=10&&temp<20)
{
printf("Cold weather");
}
else if(temp>=20&&temp<30)
{
printf("Normal in Temp");
}
else if(temp>=30&&temp<40)
{
printf("Its Hot");
}
else if(temp>=40)
{
printf(" Its Very Hot");
}
return 0;
}
INPUT :-
OUTPUT:-
--THANKS FOR VISITING THIS WEBSITE--
No comments:
Post a Comment