fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. float temperature;
  5. printf("กรุณาใส่อุณหภูมิ (ํc): ")
  6. scanf("%f", &temperature);
  7. if(temperature >= 30) {
  8. printf("อากาศร้อน\n");
  9. }
  10.  
  11.  
  12.  
  13. reture 0;
  14. }
Success #stdin #stdout 0.03s 25692KB
stdin
Standard input is empty
stdout
#include <stdio.h>

int main() {
    float temperature;
    printf("กรุณาใส่อุณหภูมิ (ํc): ")
    scanf("%f", &temperature);
    if(temperature >= 30) {
        printf("อากาศร้อน\n");
    }
    
    
    
    reture 0;
}