201k views
14 votes
Write an algorithim and flowchart to check it the temperature is more than 25°. If it more than 25°C switch fan on else off.​

User Vippy
by
2.8k points

1 Answer

3 votes

Answer:

write the sly flowchart

Step-by-step explanation:

#stdlib.etc

main()
{

int temp;
bool fan = false;

print("enter the frigin temperature: ");

read(temp);

if (temp > 25)

{
fan = true;
print("the fan is on");
}
else
{

print("the fan is off");

}

return 0;

}

User Razor Jack
by
3.5k points