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

第五节课的第三个作业

作者: dcy1 | 来源:发表于2018-11-01 09:54 被阅读0次
第五节课的第三个作业

Console .WriteLine ("用户名"); string yonghumoing=Console .ReadLine (); Console.WriteLine("密码"); string str_a=Console .ReadLine (); int a=Convert.ToInt32 (str_a); if (a==8888&&yonghumoing=="admin") { Console.WriteLine ("正确"); } if (yonghumoing != "admin") { Console.WriteLine("用户名不存在"); } else { Console.WriteLine("密码错误"); } Console .ReadKey();

#

相关文章

网友评论

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

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