
✅ 문제그림과 같이 대시('_') 문자로 구성된 형태의 숫자를 주어진 숫자와 같이 출력하고 싶을 때 사용되는 대시의 개수를 출력하는 프로그램을 작성하라.✅ 코드import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] c = { 6, 2, 5, 5, 4, 5, 6, 3, 7, 6 }; System.out.print("첫자리 0을 제외한 숫자를 입력해주세요 >> "); String nums = sc.nextLine(); int result = 0; for (int i = 0; i > " + result); sc.close()..