Computer Science, asked by tejaswini54526, 4 months ago

write a c-program to input the temperature in Celsius if the temperature is more then 30° display the massage "it's warm' otherwise it's cold​

Answers

Answered by jai696
2

\large\mathsf\color{pink}{Solution\: using\: C}

#include <stdio.h>

int main() {

float c;

printf("Enter temp in Celsius: ");

scanf("%f", &c);

(c > 30) ? printf("its warm\n"): printf("its cold\n");

return 0;

}

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions