Jump to content

syzerchas

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About syzerchas

  • Rank
    Newbie
  1. Didn't work or i misunderstood using System; namespace ReadlinPractice { class Program { static void Main(string[] args) { string passWord = "pass123"; string userName = "user"; Console.WriteLine("Please enter your username below!"); string userName2 = Console.ReadLine(); string userName4; do { Console.WriteLine("User not found! Please re-enter your username"); string userName4 = Console.ReadLine(); } while (userName4 != userN
  2. using System; namespace ReadlinPractice { class Program { static void Main(string[] args) { string passWord = "pass123"; string userName = "user"; Console.WriteLine("Please enter your username below!"); string userName2 = Console.ReadLine(); do { Console.WriteLine("User not found! Please re-enter your username"); string userName4 = Console.ReadLine(); } while (userName4 != userName); } } } I want it to loop "User not found! etc"
  3. using System; namespace ReadlinPractice { class Program { static void Main(string[] args) { string passWord = "pass123"; string userName = "user"; Console.WriteLine("Please enter your username below!"); string userName2 = Console.ReadLine(); if (userName != userName2); { Console.WriteLine("User not found! Please re-enter your username"); string userName3 = Console.ReadLine(); string result = (userName3 != userName) ? "Blocked, please try again in 5 m
×
×
  • Create New...