Demo entry 6684556

4-1

   

Submitted by anonymous on Dec 16, 2017 at 11:06
Language: C. Code size: 190 Bytes.

#include <stdio.h>

int main()
{
    char ch;

    printf("请输入一个小写英文字母 :");
    ch=getchar();

    ch=ch-32;

    printf("该字母的大写形式及ASCII码分别是:%c,%d\n",ch,ch);

    return 0;
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).