-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGothamCity.java
More file actions
23 lines (23 loc) · 810 Bytes
/
GothamCity.java
File metadata and controls
23 lines (23 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*You are a police officer, and you get a report of criminal activity! Should you go on your own, or should you call a superhero to help you fight the crime? If there
are less than 5, you can handle this on your own, if there are 5-10, you will want to go with Batman for backup, and if there are more than 10, you should stay where it is
safe and let Batman handle this on his own!
Sample Input:
7
Sample Output:
'Help me Batman'*/
import java.util.Scanner;
public class GothamCity{
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
int num = in.nextInt();
if (num<5) {
System.out.println("I got this!");
}
else if(num>=5&&num<=10){
System.out.println("Help me Batman!");
}
else{
System.out.println("Good Luck out there!");
}
}
}