// Demonstration of chained if statements // with simple conditions // // Written by: Angela Finlayson // Date: 14/09/2024 #include #define COLD 10 int main(void) { int temperature; printf("Please enter the temperature: "); scanf("%d", &temperature); if (temperature <= COLD) { printf("I am cold!\n"); } else { printf("I am not cold!\n"); } printf("Have a nice day\n"); return 0; }