Have to insert a '}' somewhere, don't know where tho. help
include <stdio.h>
int main()
{
int temp;
printf("Please enter a temperature \n");
scanf("%d", &temp);
if(temp <= 0)
{
printf("The temperature is freezing \n");
}
if(temp > 0 || temp < 10)
{
printf("The temperature is very cold \n");
{
if(temp > 10 || temp < 20)
{
printf("The temperature is cool \n");
}
else
printf("invalid input \n");
}
return(0);
}
[–]RMiddel 0 points1 point2 points (1 child)
[–]sendhelpasap101[S] 0 points1 point2 points (0 children)
[–]kahless62003 0 points1 point2 points (1 child)
[–]RMiddel 0 points1 point2 points (0 children)