P5704 刷题记录

题目地址:https://www.luogu.com.cn/problem/P5704
这是洛谷官方顺序结构题单中的一题,可利用ASCII码解题。
代码如下:

#include <stdio.h>

int main() {
    char a;
    char b;
    scanf("%c", &a);
    b = a - 32;
    printf("%c", b);

    return 0;
}
posted @ 2020-04-11 14:41  kozumi  阅读(116)  评论(0编辑  收藏  举报