1.判断身高,体重是否标准
Console.WriteLine("请输入您的身高:"); int sg = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("请输入您的体重:"); int tz = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("请输入您的性别:"); string xb = Console.ReadLine(); if (xb =="男") { int bzs = sg - 100 + 3; int bzx = sg - 100 - 3; if (tz >= bzx && tz <= bzs) { Console.WriteLine("您的身材不错"); } else if (tz < bzx) { Console.WriteLine("您太瘦了,多吃点"); } else { Console.WriteLine("不能再吃了"); } } else if (xb=="女") { int bzs = sg - 110 + 3; int bzx = sg - 110 - 3; if (tz >= bzx && tz <= bzs) { Console.WriteLine("身材好,身材火辣"); } else if (tz < bzx) { Console.WriteLine("美女,有点瘦了"); } else { Console.WriteLine("再吃女神变屌丝了"); } } else { Console.WriteLine("没有您这种性别的人,请自己核实"); }