zoukankan      html  css  js  c++  java
  • 从键盘输入一个大写英文字母,将其转换为小写英文字母后,将转换后的小写英文字母及其十进制的ASCII码值显示到屏幕上。

    从键盘输入一个大写英文字母,将其转换为小写英文字母后,将转换后的小写英文字母及其十进制的ASCII码值显示到屏幕上。

    **输入格式要求:提示信息:"Press a key and then press Enter:"

    **输出格式要求:"%c, %d "

    程序运行示例如下:

    Press a key and then press Enter:B

    b, 98

    1 #include<stdio.h>
    2 int main()
    3 {
    4     char a;
    5     printf("Press a key and then press Enter:");
    6     scanf("%c",&a);
    7     printf("%c,%d
    ",a+32,a+32);
    8     return 0;
    9 }
  • 相关阅读:
    HTML5新增标签和属性
    HTML——表单标签
    HTML——表格标签
    js
    js
    js
    js
    js-02-2
    js
    selleck --手机端-- 销售打卡记录下载
  • 原文地址:https://www.cnblogs.com/20201212ycy/p/14528628.html
Copyright © 2011-2022 走看看