import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("Ingresa la temperatura actual: ");
        int temperatura = scanner.nextInt();

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

        scanner.close();
    }
}

Embed on website

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