正在加载图片...
The C Programming language Chapter 5 Control Flow 5.2 Selected Construction(if and switch) if statement: has three syntax O. if (expression)statement expr flowchart 0 tatement as: if(x>y) printf( %od,, x) ◆·if( expression statement 1 !0 expr else as: if(x>y)max-X ht1 statement2 else max-yThe C Programming Language Chapter 5 Control Flow  5.2 Selected Construction (if and switch) ❖ if statement: has three syntax ▪ if (expression) statement ▪ flowchart expr statement !0 =0 as : if (x>y) printf(“%d”,x); expr statement1 statement2 !0 =0 ▪ if (expression) statement1 else statement2 ▪ flowchart as:if (x>y) max=x ; else max=y ;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有