복합대입연산자 썸네일형 리스트형 #52_140827_JAVA_연산자 # 연산자 l 연산자 import java.util.Scanner; public class example1 { public static void main(String[] args) { System.out.print("첫번째 수를 입력하시오 ? "); Scanner sc=new Scanner(System.in); int n1=sc.nextInt(); System.out.print("두번째 수를 입력하시오 ? "); Scanner sc2=new Scanner(System.in); int n2=sc2.nextInt(); int result = n1 + n2; System.out.println("덧셈 결과: "+result); result = n1 - n2; System.out.println("뺄셈 결과: " .. 더보기 이전 1 다음