-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathElseIF.java
More file actions
33 lines (27 loc) · 791 Bytes
/
Copy pathElseIF.java
File metadata and controls
33 lines (27 loc) · 791 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
26
27
28
29
30
31
32
33
// I can get video game if i score > 35
// I can get i phone if i score > 60
// I can get Macbook pro if i score > 90
import java.util.Scanner;
class ElseIF{
public static void main(String args[])
{
Scanner Scan = new Scanner(System.in);
int score = Scan.nextInt();
System.out.println("Enter your Score "+score);
if( score >= 90 )
{
System.out.print("You Got MacBook Pro");
}
else if( score >= 60 )
{
System.out.print("You Got I Phone");
}
else if( score >= 35 )
{
System.out.print("You Got Video Game");
}
else {
System.out.print("Keep Trying");
}
}
}