zoukankan      html  css  js  c++  java
  • c#100 计算行李重量

    using System;
    using System.Collections.Generic;
    using System.Text;
     
    namespace ConsoleApplication1
    {
        class 行李重量
        {
            static void Main(string[] args)
            {
     
                {
                    Double a;
                    while (true)
                    {
                        Console.Write("请输入行李重量(kg)");
     
                         a = Convert.ToDouble(Console.ReadLine());
     
     
     
                        if (a >= 0 && a <= 50)
                        {
                            Double g = a * 0.25;
                            Console.WriteLine("您的运费为"+(a*0.25)+"元");
     
     
                        }
                        else if (a > 50)
                        {
                            Console.WriteLine("您的运费为"+(a*0.25+(a-50)*0.4) +"元");
                        }
                        else
                        {
                            Console.WriteLine("您的输入有误");
                        }
     
    console.readline();
                    }
                }
            }
        }
    }
  • 相关阅读:
    第六次站立会议
    第四次站立会议
    第五次站立会议
    用户场景描述
    第三次站立会议
    第二次站立会议
    maven install 报错Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin
    eclipse配置maven
    maven下载和配置
    maven学习笔记
  • 原文地址:https://www.cnblogs.com/w-wz/p/4438662.html
Copyright © 2011-2022 走看看