1024 计算字母符号

来源:互联网 发布:mysql 视频 编辑:程序博客网 时间:2024/05/10 02:42
#include <stdio.h>int main(){    char ch;    int t;    scanf("%c",&ch);    if(ch>='a' && ch<='z')        t=ch-96;    else        t=ch-64;    printf("%d",t);    return 0;}

0 0
原创粉丝点击