33,311
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
void main(void)
{
float a,b,t;// 定义三个浮点型数据
cout<<"Input 2 Real Number:\n";//在屏幕上提示输入两个浮点型数据
cin>>a>>b;//给变量赋值 a:7,b:3
if (a > b)
{
t=a;a=b;b=t;
}
cout<<a<<'\t'<<b<<endl;//输出变量
}
'/t'修改为'\t'。