Created
July 16, 2022 01:42
-
-
Save modos/25a7f960761fcfcc52a81ee0e44bba40 to your computer and use it in GitHub Desktop.
کولر یا بخاری
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
int n = scanner.nextInt(); | |
for (int i = 0; i <n ; i++) { | |
int nn = scanner.nextInt(); | |
if (nn > 15){ | |
System.out.println("cooler"); | |
}else { | |
System.out.println("heater"); | |
} | |
} | |
scanner.close(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment