2019年3月23日

例3-11 四则运算

摘要: 例3 11 四则运算 在例3 9、例3 5的基础上增加对除数是否为零的判断 程序核心——if语句 程序 结果 分析 重点: 阅读全文

posted @ 2019-03-23 09:40 凯*凯 阅读(98) 评论(0) 推荐(0) 编辑

例3-10 统计字符

摘要: 例3 10 统计字符 程序核心——switch语句与循环语句镶嵌 程序 include int main() { int blank,digit,i,other; char ch; blank=digit=other=0; printf("Enter 10 characters:"); for(i= 阅读全文

posted @ 2019-03-23 09:39 凯*凯 阅读(173) 评论(0) 推荐(0) 编辑

例3-9 四则运算

摘要: 例3 9 四则运算 程序核心——switch循环语句 程序 结果 分析 重点:switch语句判断的是一个常量 阅读全文

posted @ 2019-03-23 09:38 凯*凯 阅读(117) 评论(0) 推荐(0) 编辑

例3-8 查询价格

摘要: 例3 8 查询价格 程序核心——两种循环语句的镶嵌 程序 include int main() { int choice,i; double price; for(i=1;i 阅读全文

posted @ 2019-03-23 09:33 凯*凯 阅读(96) 评论(0) 推荐(0) 编辑

例3-7 统计字符

摘要: 例3 7 统计字符 程序核心——循环语句判断语句的镶嵌 程序 include int main() { int digit,letter,other,i;//定义三个变量统计结果 char ch; digit=letter=other=0; printf("Enter 10 characters:" 阅读全文

posted @ 2019-03-23 09:32 凯*凯 阅读(117) 评论(0) 推荐(0) 编辑

导航