美文网首页
第五节课的第四个作业

第五节课的第四个作业

作者: dcy1 | 来源:发表于2018-11-01 09:56 被阅读0次

    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")

    第五节课的第四个作业

    相关文章

      网友评论

          本文标题:第五节课的第四个作业

          本文链接:https://www.haomeiwen.com/subject/tpytxqtx.html