[JAVA] do-while문을 이용한 성적처리 프로그램 만들기
do-while문을 이용해서 한사람의 성적을 처리하는 프로그램을 만들었습니다. public class score { public static void main(String[] args) { // 1사람 성적처리 // 입력 : 이름, 국, 영, 수 // 연산 : 총점, 평균 // 출력 : 이름, 국, 영, 수, 총, 평 Scanner sc = new Scanner(System.in); System.out.println("이름을 입력하시오."); String name = sc.next(); int []num = new int[4]; // 국, 영, 수 float total = 0; // 총 점수 float avg; // 평균 System.out.println("국어, 영어, 수학 점수를 차례로 입력하시오."..