双分支条件语句
2017-11-21 11:10
162 查看
#include <stdio.h>
#include <stdlib.h>
int 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\n",max);
}
#include <stdlib.h>
int 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\n",max);
}
相关文章推荐
- java (复合语句,条件语句,多分支语句,跳转语句)
- 软件测试中条件覆盖,路径覆盖,语句覆盖,分支覆盖的区别
- Shell编程中if-elif-else条件分支语句测试
- Python005条件分支语句
- 条件覆盖,路径覆盖,语句覆盖,分支覆盖解释
- 条件覆盖,路径覆盖,语句覆盖,分支覆盖解释
- 使用控制结构——条件分支语句——多重条件分支
- 软件测试中条件覆盖,路径覆盖,语句覆盖,分支覆盖的区别
- 《重构--改善既有代码的设计》读书笔记之四:将条件分支语句放入合适类中
- 使用控制结构——条件分支语句——CASE语句
- 软件测试中条件覆盖,路径覆盖,语句覆盖,分支覆盖的区别
- 软件测试中条件覆盖,路径覆盖,语句覆盖,分支覆盖的区别
- Vb.net 中条件分支语句
- python的条件分支语句(if)
- java基础之 “if ”条件分支语句和switch开关语句
- 25_Shell语言――――if条件判断之组合判断(与、或、非)和多分支if语句
- 双分支的控制的条件语句
- verilog中条件分支语句的综合问题
- switch语句:适用于一个条件有多个分支的情况---分支语句
- JAVA 基础语法(三)——三目(条件)运算符以及分支语句