我更帅吧 关注:30贴子:4,394
  • 1回复贴,共1
  • 82.113.121.*
#include <iostream>
using namespace std;
int main()
{
float a,b,c;
cout<<"Geben Sie 1.Zahl ein:";
cin>>a;
cout<<"Geben Sie 2.Zahl ein:";
cin>>b;
cout<<"Geben Sie 3.Zahl ein:";
cin>>c;
if (a>b>c)
{
cout<<"groesste Wert:"<<a<<endl;
cout<<"sortiete Ausgabe:"<<a<<">"<<b<<">"<<c<<endl;
}
if (a>c>b)
{
cout<<"groesste Wert:"<<a<<endl;
cout<<"sortiete Ausgabe:"<<a<<">"<<c<<">"<<b<<endl;
}
    if (a>b==c)
{
cout<<"groesste Wert:"<<a<<endl;
cout<<"sortiete Ausgabe:"<<a<<">"<<b<<"="<<c<<endl;
}
if (b>a>c)
{
cout<<"groesste Wert:"<<b<<endl;
cout<<"sortiete Ausgabe:"<<b<<">"<<a<<">"<<c<<endl;
}
if (b>c>a)
{
cout<<"groesste Wert:"<<b<<endl;
cout<<"sortiete Ausgabe:"<<a<<">"<<c<<">"<<a<<endl;
}
if (b>a==c)
{
cout<<"groesste Wert:"<<b<<endl;
cout<<"sortiete Ausgabe:"<<b<<">"<<b<<"="<<c<<endl;
}
if (c>a>b)
{
cout<<"groesste Wert:"<<c<<endl;
cout<<"sortiete Ausgabe:"<<c<<">"<<a<<">"<<b<<endl;
}
if (c>b>a)
{
cout<<"groesste Wert:"<<c<<endl;
cout<<"sortiete Ausgabe:"<<c<<">"<<b<<">"<<c<<endl;
}
if (c>a==b)
{
cout<<"groesste Wert:"<<c<<endl;
cout<<"sortiete Ausgabe:"<<c<<">"<<a<<"="<<b<<endl;
}
if (a==b>c)
{
cout<<"groesste Wert:"<<a<<endl;
cout<<"sortiete Ausgabe:"<<a<<"="<<b<<">"<<c<<endl;
}
if (a==c>b)
{
cout<<"groesste Wert:"<<a<<endl;
cout<<"sortiete Ausgabe:"<<a<<"="<<c<<">"<<b<<endl;
}
if (b==c>a)
{
cout<<"groesste Wert:"<<b<<endl;
cout<<"sortierte Ausgabe:"<<b<<"="<<c<<">"<<a<<endl;
}
if (a==b==c)
{
cout<<"groesste Wert:"<<a<<endl;
cout<<"sortiete Ausgabe:"<<a<<"="<<b<<"="<<c<<endl;
}
return 0;
}
误删


1楼2009-04-07 05:00回复
    • 82.113.121.*
    # include <iostream>
    using namespace std;
    int main ()
    {
    float x,y,z;
    cout<<"Geben Sie 1.Zahl ein:";
    cin>>x;
    cout<<"Geben Sie 2.Zahl ein:";
    cin>>y;
    cout<<"Geben Sie 3.Zahl ein:";
    cin>>z;
    if (x>y)
    {
    if (y>z)
    cout<<x<<">"<<y<<">"<<z<<endl;
    if (z>y&&x>z)
    cout<<x<<">"<<z<<">"<<y<<endl;
    if (y==z)
    cout<<x<<">"<<y<<"="<<z<<endl;
    if (x==z)
    cout<<x<<"="<<z<<">"<<y<<endl;
    }
    if (y>x)
    {
    if (x>z)
    cout<<y<<">"<<x<<">"<<z<<endl;
    if (z>x&&y>z)
    cout<<y<<">"<<z<<">"<<x<<endl;
    if (x==z)
    cout<<y<<">"<<x<<"="<<z<<endl;
    if (y==z)
    cout<<y<<"="<<z<<">"<<x<<endl;
    }
    if (z>x)
    {
    if (x>y)
    cout<<z<<">"<<x<<">"<<y<<endl;
    if (y>x&&z>y)
    cout<<z<<">"<<y<<">"<<x<<endl;
    if (x==y)
    cout<<z<<">"<<x<<"="<<y<<endl;
    }
    if (x==y&&y==z)
    cout<<x<<"="<<y<<"="<<z<<endl;
    return 0;
    }


    2楼2009-04-08 04:19
    回复