C语言程序设计第五章课件.ppt
《C语言程序设计第五章课件.ppt》由会员分享,可在线阅读,更多相关《C语言程序设计第五章课件.ppt(57页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、2022-8-132/562022-8-133/562022-8-134/562022-8-135/562022-8-136/562022-8-137/562022-8-138/562022-8-139/562022-8-1310/562022-8-1311/562022-8-1312/56Start/EndProcessInput/OutputTestConnectorFlow of activities2022-8-1313/56 2022-8-1314/56ABC2022-8-1315/56 2022-8-1316/562022-8-1317/56Relational Operation
2、DescriptionExamples of ExpressionValueLess than6 91 (true)=Less than or equal to5 Greater than2 60 (false)=Greater than or equal to9 = 51 (true)=Equal to7 = 50 (false)!=Not equal to6 != 51 (true)2022-8-1318/56step aif startstep mstep nend_ifstep b2022-8-1319/56Syntax:复合语句复合语句compound statement被当做一条语
3、句看待被当做一条语句看待2022-8-1320/56Syntax:2022-8-1321/56#include main() int a, b, max; printf(Input a,b:); scanf(%d,%d, &a, &b); if (a b)max = a; if (a = b)max = b; printf(max = %dn, max);Input a,b: _Input a,b: 20 15_Input a,b: 20 15max = 20_2022-8-1322/56Step aif startStep mStep nend_ifelse startStep xStep
4、yend_elseStep z2022-8-1323/56Syntax:or2022-8-1324/562022-8-1325/562022-8-1326/56#include main() int a, b, max; printf(Input a, b:); scanf(%d,%d, &a, &b); if (a b) max = a; else max = b; printf(max = %d, max); if (a b) max = a; if (a = b) max = b;2022-8-1327/56#include main() int a, b, max; printf(In
5、put a, b:); scanf(%d,%d, &a, &b); if (a b) max = a; else max = b; printf(max = %d, max); max = a b ? a : b;2022-8-1328/56Step a (expression1)Step m (expression2) Step n Step z2022-8-1329/56Step a(expression1) Step m (expression2) Step n Step x Step z2022-8-1330/56The structure is similar to multiple
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 语言程序设计 第五 课件
限制150内