zoukankan      html  css  js  c++  java
  • 输入三个数把这三个数按由小到大的顺序输出.

    #include <stdio.h>
    int main()
    {   /*输入三个数把这三个数按由小到大的顺序输出*/
        int x,y,z,t;
        scanf("%d %d %d",&x,&y,&z);
        if (x>y)
        {
            t=x;
            x=y;
            y=t;
        }
        if (x>z)
        {
            t=x;
            x=z;
            z=t;
        }
        if (y>z)
        {
            t=y;
            y=z;
            z=t;
        }
        printf("small to big %d %d %d\n",x,y,z);
        getch();
        return 0;
    }

  • 相关阅读:
    Splash wait() 方法
    Splash go() 方法
    Splash 对象方法
    短信接口文档
    WMS开发环境
    Eureka
    pom.xml settings.xml
    Druid
    EAI并发
    重启WMS服务
  • 原文地址:https://www.cnblogs.com/wangjingyuwhy/p/2942487.html
Copyright © 2011-2022 走看看