java random game1 [Java] Random Game Up&Down 숫자 맞추기. (1~100까지, 10회) import java.util.Scanner; public class RandomGame { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //선언부(변수) int randNum, userNum; boolean clear; //초기화 clear = false; //Random randNum = (int)(Math.random()*100)+1; int w = 0; while(w randNum) { msg = 0; }else if(userNu.. 2021. 5. 10. 이전 1 다음