#include <stdio.h>

int main() {
    int temperatura;

    printf("Ingresa la temperatura actual: ");
    scanf("%d", &temperatura);

    if (temperatura > 30) {
        printf("Hace mucho calor.\n");
    } else if (temperatura > 20) {
        printf("Es un día agradable.\n");
    } else if (temperatura > 10) {
        printf("Hace un poco de frío.\n");
    } else {
        printf("Hace mucho frío.\n");
    }

    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: