08 2022 档案
摘要:1.0——C的基本结构及语句 1.1——基本数据类型 1.2——变量定义 1.3——表达式 1.4——输入输出 1.5——格式字符表 2.0——选择结构(if…else…) 2.1——关系表达式 2.2——逻辑表达式 2.3——if...else...选择结构语句 2.4——注释(comment)
阅读全文
摘要:#include <stdio.h>int main (){ printf("请输入月份(数字)\n"); int month = 0; scanf("%d",&month); switch (month) { case 1: printf("January\n"); break; case 2:
阅读全文
摘要:#include <stdio.h>int main (){int a,b,c = 0;int max = 0; printf("请输入三个数\n");scanf("%d %d %d",&a,&b,&c); if(a>=b){ max = a;}else if (b>=c){ max = b;}el
阅读全文