diff --git a/src/src/kimgunwoo/Case1.java b/src/src/kimgunwoo/Case1.java new file mode 100644 index 0000000..74c3c34 --- /dev/null +++ b/src/src/kimgunwoo/Case1.java @@ -0,0 +1,28 @@ +package kimgunwoo; + +import java.util.Scanner; + +public class Case1 { + public void gameStart(int randomNum){ + Scanner scanner = new Scanner(System.in); + int a = 0; + do{ + Integer userInput = Integer.parseInt(scanner.nextLine()); + + if (randomNum < userInput) { + System.out.println("DOWN"); + + } else if (randomNum > userInput) { + System.out.println("UP"); + } else { + System.out.println("GOOD"); + break; + } + a = a + 1 ; + }while (a<0); + } + + +} + +