Console.WriteLine("年龄"); string str_a=Console .ReadLine (); int a=Convert.ToInt32 (str_a); if (a>=18) { Console.WriteLine("可查看"); } if (a<10) { Console.WriteLine("bu可查看"); } if (a>=10&&a<18) { Console.WriteLine("是否查看"); } Console.WriteLine("是否查看"); string fb=Console .ReadLine (); if (fb=="yes")
网友评论