#include <stdio.h>
#include <string.h>

int main(void)
{
    char c1;
    int ascii;
    scanf("%s", &c1);
    ascii = (int)(c1);
    printf("%d\n", ascii);
}

'코딩테스트 > C' 카테고리의 다른 글

백준 2675번 문자열 반복  (0) 2024.06.29
백준 10809번 알파벳 찾기  (0) 2024.06.29
백준 9086번 문자열  (0) 2024.06.29
백준 2743번 단어 길이 재기  (0) 2024.06.29
백준 10811 바구니 뒤집기  (0) 2024.06.29

+ Recent posts