Hey, guys, I'm new to c programming. I seem to get the program working but for some reason, my else statement is showing up when I end the program. Any help is appreciated.
Code:#include<stdio.h> int main( void ) { int temp; do{ printf("Enter the temperature(-99 to stop): "); scanf("%d",&temp); if(temp >= 85){ printf("its warm\n"); } else if(temp >= 60 && temp <= 84){ printf("its pleasant\n"); } else { printf("its a cold day\n"); } } while (temp != -99); { printf("close"); } }