๋ณ๋ง๋ค๊ธฐ
[์๋ฐ/java] ์ฌ์ฉ์ ์ ๋ ฅ๋ฐ์ ๋ฐฐ์ด ์ธ๋ฑ์ค ์ ๋งํผ ๋ณ์ ์ถ๋ ฅํ๊ธฐ.
์ ์ฌ๋ฌธ์ ์์ฐจ๋๋ก ๋ณ ๋ฝ๊ธฐ ์ํ๋ ๋ณ ๋ชจ์ ์ถ๋ ฅํ๊ธฐ ํ์ฉ ๋ฒ์๊ฐ ๋ค์ํ๋ค ๋ชฉํ ์ฝ๋ package JavaBook; import java.util.Scanner; public class no3 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int arr[] = new int[5]; for(int i = 0;i < 4;i++) { System.out.print(i+1+"๋ฒ์งธ ๋ณ์ ์ : "); arr[i] = sc.nextInt(); } for(int i = 0;i< 4;i++) { System.out.print(arr[i]+" : "); for(int j = 0;j < arr[i];j++) { System.o..