본문 바로가기
Beakjoon&프로그래머스/Java

[백준/Java] 11283번 한글 2

by 현장 2022. 4. 12.

-Code

import java.util.Scanner;

public class _11283 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char ch = sc.next().charAt(0);
        int num = (int) ch;
        System.out.println(num - 44031);
    }
}