Search

1149 : ๋‘ ์ˆ˜ ์ค‘ ํฐ ์ˆ˜

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); // int result = a > b ? a : b; int result = 0; if( a > b ) result = a; else result = b; System.out.println(result); } }
Java
๋ณต์‚ฌ