首页 > 其他 > 详细

条件都判断完才能判断的最基础的有车有房有钱才能结婚的判断条件

时间:2015-03-28 12:57:37      阅读:158      评论:0      收藏:0      [点我收藏+]

static void Main(string[] args)
{
while (true)
{
Console.Write("请问有没有房子?:");
string a = Console.ReadLine();
Console.Write("请问有没有车子?:");
string b = Console.ReadLine();
Console.Write("请问有没有钱?:");
string c = Console.ReadLine();
if (a=="有")
{
if (b=="有")
{
if (c=="有")
{
Console.WriteLine("那就结婚吧!");
}
}
}
else if (a=="没有"||b=="没有"||c=="没有")
{
Console.WriteLine("你走开!本年神还在等下一位你");
}
else
{
Console.WriteLine("请只回答有或者没有");
}
}

}

条件都判断完才能判断的最基础的有车有房有钱才能结婚的判断条件

原文:http://www.cnblogs.com/dlexia/p/4373999.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!