컴퓨터랑 가위 바위 보 하기 코드 112345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758import java.util.*; public class Game2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str[] = {"가위", "바위", "보"}; String me, com; int c = 0; System.out.println("가위 바위 보 게임을 시작합니다."); while(true) { System.out.print("가위 바위 보 중 한 개를 입력하세요 : "); me = s.. 2021. 3. 23. 카드 번호 맞추기 카드번호를 '77'로 지정하여 맞추기 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 34 35 36 37 import java.util.Scanner; public class Up_Down { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("수를 결정하였습니다 맞춰보세요"); System.out.println("0-99"); while(true) { int num = sc.nextInt(); if(num==77) { System.out.println("맞았습니다");.. 2021. 3. 23. 이전 1 다음