zoukankan      html  css  js  c++  java
  • 三个数比较大小

     Console.WriteLine("请输入三个数");
                int a, b, c,jg;
                a = Convert.ToInt32(Console.ReadLine());
                b = Convert.ToInt32(Console.ReadLine());
                c = Convert.ToInt32(Console.ReadLine());
                if (a>b&&a>c)
                {
                    jg=a;
                }
                else if(b>a&&b>c)
                {
                jg=b;
                }
                else
                {
                jg=c;
                }
                Console.WriteLine("最大数是"+jg);
               

  • 相关阅读:
    RaisedButton
    Icon
    RichText
    GridView
    HTML常用标签
    HTML语法
    HTML简史
    17_继承
    16_Math
    16_ArrayList
  • 原文地址:https://www.cnblogs.com/shitouge/p/4307561.html
Copyright © 2011-2022 走看看