Hello friends!!!!!

Pgr to find whether the the given temperature is hot or cold

C LANGUAGE

9/17/20241 min read

#include<stdio.h>


int main () {

int t;


printf("Enter the value of temperature : ");

scanf("%d", &t);


if(t <= 30) {

printf("The temperature is cool");

}

if (t > 30) {

printf("The temperature is hot");

}

return 0;

}

Output :

Enter the value of temperature : 17

The temperature is cool

=== Code Execution Successful ===