-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEtkinlik.java
More file actions
25 lines (24 loc) · 812 Bytes
/
Etkinlik.java
File metadata and controls
25 lines (24 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import java.util.Scanner;
public class Etkinlik {
public static void main(String[] args) {
/* 5 Öncesi kayak
5-15 Sinema
10-25 Piknik
*/
Scanner input = new Scanner(System.in);
System.out.println("Welcome to the program that recommends activity according to the weather!");
System.out.println("Please enter the weather temperature: ");
int degree=input.nextInt();
if (degree<5){
System.out.println("Ski");}
else if (5<=degree&& degree<=25){
if(degree<=15) {
System.out.println("Cinema");
}
if(degree>=10){
System.out.println("Picnic");
}
}else{
System.out.println("Swim");}
}
}