Skip to content

Instantly share code, notes, and snippets.

@modos
Created July 16, 2022 01:42
Show Gist options
  • Save modos/25a7f960761fcfcc52a81ee0e44bba40 to your computer and use it in GitHub Desktop.
Save modos/25a7f960761fcfcc52a81ee0e44bba40 to your computer and use it in GitHub Desktop.
کولر یا بخاری
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