Java :: 숫자맞추기프로그램
JAVA 수업 [숫자 맞추기 프로그램] 소스코드 123456789101112131415161718import java.util.Scanner;import java.util.Random; public class java3 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Random rand = new Random(); int input=0, count=0, random=rand.nextInt(10)+1; while(true) { System.out.print("insert : "); input = sc.nextInt(); if(input == random) break; System.out.println(++cou..