[JAVA] ifelse(1)
·
JAVA
import java.util.Scanner; public class Test01 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("이름 입력: "); String name = sc.next(); System.out.print("자바 점수 입력: "); int java = sc.nextInt(); System.out.print("파이썬 점수 입력: "); int python = sc.nextInt(); int sum = java + python; System.out.println(name + "님의 성적 합계 = " + sum + "점, 평균 = " + sum/2.0 + "점"..