if-else语句
来源:互联网 发布:java单例模式面试 编辑:程序博客网 时间:2024/05/21 06:16
#include<iostream>
using namespace std;
int main()
{
int a,b;
cout<<"请输入第一个数字:";
cin>>a;
cout<<"请输入第二个数字:";
cin>>b;
if(a>b)
{
cout<<"第一个数比第二个数大!"<<endl;
}
else
cout<<"第二个数比第一个数大!"<<endl;
cout<<"程序执行完毕!"<<endl;
return 0;
}
using namespace std;
int main()
{
int a,b;
cout<<"请输入第一个数字:";
cin>>a;
cout<<"请输入第二个数字:";
cin>>b;
if(a>b)
{
cout<<"第一个数比第二个数大!"<<endl;
}
else
cout<<"第二个数比第一个数大!"<<endl;
cout<<"程序执行完毕!"<<endl;
return 0;
}
- IF-ELSE IF-ELSE语句
- Delphi if else 语句
- if~else 语句再认识
- if else 语句
- JavaScript If...Else 语句
- PHP If...Else 语句
- PHP If...Else 语句
- if-else语句
- JavaScript If...Else 语句
- JavaScript If...Else 语句
- JAVA If-else语句
- if...else... 语句
- sql if else 语句
- if-else语句注意事项
- 010 else -if 语句
- 3.9、if else 语句
- if..else 语句应用
- Shell if else语句
- Android 2.2开始支持安装APP2SD卡上
- JQuery AJAX提交中文乱码的解决方案
- Android4.0 HTML5浏览器比不过iOS5?
- 第一个应用程序(三)
- Android项目更换开发环境时出现的 java.lang.VerifyError 异常解决办法
- if-else语句
- 设计模式之装饰模式(Deractor)
- lnmp编译安装
- 批处理文件清楚Svn文件
- Python的Excel接口 xlrd5
- .net 图片的二进制数据库存储和显示
- 区分PC还是移动设备useragent的javascript代码
- Page Faults/sec & Pages/sec
- Spring事务配置的五种方式