If temperature is input through the keyboard in Fahrenheit degrees, write a program which determine how is the atmosphere according to the following rules:
if temperature is above 40 degrees centigrade------------------Very hot
if temperature is between 35 & 40 degrees centigrade--------Tolerable
if temperature is between 30 & 35 degrees centigrade--------Warm
if temperature is between 30 & 10 degrees centigrade--------Cool
if temperature is between 10 & 04 degrees centigrade--------Cold
if temperature is less than 04 degrees centigrade---------------Coldest
Answers
Answered by
0
Answer:
kdjndkeosmdnhd isowlsbdk
Answered by
0
A C PROGRAM to determine how the temperature is according to given rules:
#include
void main ( )
{
float F,C;
printf("Enter the room temperature in Fahrenheit\n");
scanf("%d",&F);
C=(F-32)*5/9;
if(C > 40)
{
printf(" The atmosphere is VERY HOT\n");
}
else if(35 >= C <= 40)
{
printf(" The atmosphere is TOLERABLE\n");
}
else if(30 >= C <= 35)
{
printf("The atmosphere is WARM\n");
}
else if(10>= C <= 30)
{
printf("The atmosphere is COOL\n");
}
else if(4 >= C <= 10)
{
printf("The atmosphere is COLD\n");
}
else
{
printf("The atmosphere is COLDEST\n")
}
}
Similar questions
Social Sciences,
2 months ago
Math,
2 months ago
Science,
2 months ago
Science,
4 months ago
Math,
10 months ago
Computer Science,
10 months ago
English,
10 months ago