四个数排序

#include<iostream> using namespace std; int main() {int t,a,b,c,d; cout<<"enter four numbers:"; cin>>a>>b>>c>>d; cout<<"a="<<a<<"b="<<b<<"c="<<c<<"d="<<d<<endl; if(a>b) {t=a;a=b;b=t;} if(a>c) {t=a;a=c
相关文章
相关标签/搜索