#include <conio.h>
#include <stdio.h>
int main()
{
char status
int temp
clrscr();
printf("road status is (type S when safe or any letter when unsafe");
scanf ("%c", &status);
if ((status=='S')||(status=='s'))
printf ("Temperature > 0");
scanf ("%d", &temp);
if(temp >= 0)
printf ("wet road");
else
printf ("icy road");
else
printf ("drive carefully");
getch();
return 0;
}
The problem is when i try to compile it there's an error. ROAD.C 18: misplaced else