
โ
๋ฌธ์ ๋๋ค์ผ๋ก ์ ์ 2๊ฐ๋ฅผ ๋ฝ์ ์๋์ ๊ฐ์ด ์ถ๋ ฅ์ฌ์ฉ์๋ ๋ ์์ ํฉ์ ์
๋ ฅ๋ ์์ ํฉ๊ณผ ์
๋ ฅํ ์๊ฐ ์ผ์นํ๋ฉด "Success", ๋ ์์ ํฉ๊ณผ ์
๋ ฅํ ์๊ฐ ์ผ์นํ์ง ์์ผ๋ฉด "Fail"์ ์
๋ ฅ*๊ธฐํ๋ 5๋ฒ! 5๋ฒ ํ๋ฆฌ๋ฉด GAME OVER โ
์ฝ๋import java.util.Random;import java.util.Scanner;public class Main { public static void main(String[] args) { Random rd = new Random(); Scanner sc = new Scanner(System.in); int cnt = 0; while (true) { int num1 = rd.nextInt(10) + 1; int num2 = rd.nextIn..