JAVA
[Java] 계산기 만들기 (switch문 연습)
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374import java.util.Scanner; public class Calculator { public static void main(String[] args) { Scanner sc; sc = new Scanner(System.in); float num1; //실수형 float num2; String oper; //문자열 String con; boolean a; //논리값 do{ System.out.print("숫자 입력 : "); num1 = sc.nex..
2019. 6. 12. 17:08