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
2
#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;
}
Similar questions