package b_operator;
import java.util.Scanner;
public class Class93 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println("첫번째 숫자 : ");
double x = Double.parseDouble(s.nextLine());
System.out.println("연산자>");
String y = s.nextLine();
System.out.println("두번째 숫자: ");
double z = Double.parseDouble(s.nextLine());
// Scanner s = new Scanner(system.in);
//
// System.out.print("첫번째 숫자>");
// double x = Double.
//
//
// 위에는 사진으로 남김 .
//
// op.equals("+") ? x+y
// : op.equals("-") ? x-y
// : op.equals("*") ? x*y
// : op.equals("/") ? x/y
// : x % y;
// System.out.println(x + " " + op + " " + y + " = " + result);
//
//
}
}
댓글
댓글 쓰기