zoukankan      html  css  js  c++  java
  • 课后练习1.

    1.三个数中选最大值

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace ConsoleApplication18
    {
    class Program
    {
    static void Main(string[] args)
    {
    Console.Write("");
    int a = int.Parse(Console.ReadLine());

    Console.Write("");
    int b = int.Parse(Console.ReadLine());

    Console.Write("");
    int c = int.Parse(Console.ReadLine());

    if (a > b && b > c)
    {
    Console.WriteLine("三个数中最大的数为: +a");
    }
    if (a < b && b < c)
    {
    Console.WriteLine("三个数中最大的数为: +c");
    }
    if (a < b && b > c)
    {
    Console.WriteLine("三个数中最大的数为: +b");
    }

    Console.ReadLine();
    }

    }
    }

  • 相关阅读:
    java入门了解14
    java入门了解13
    java入门了解12
    java入门了解11
    Hive-安装
    Hive-基本概念
    Java笔记20
    Java-笔记19
    Java-笔记18-复习
    Java-笔记18
  • 原文地址:https://www.cnblogs.com/myspace2015/p/4694632.html
Copyright © 2011-2022 走看看