update,
This commit is contained in:
13
_resources/it114105/itp3914/Lab06/Ex6.java
Normal file
13
_resources/it114105/itp3914/Lab06/Ex6.java
Normal file
@@ -0,0 +1,13 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
public class Ex6 {
|
||||
public static void main(String[] args) {
|
||||
Scanner input = new Scanner(System.in);
|
||||
System.out.print("Street number? ");
|
||||
if(input.nextInt() % 2 == 0){
|
||||
System.out.println("east-bound");
|
||||
}else{
|
||||
System.out.println("West-bound");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user