Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- bool isTrue = true;
- string egn = string.Empty;
- while (isTrue)
- {
- egn = Console.ReadLine();
- if (egn.Length == 10)
- {
- Console.Write("The egn is correct: ");
- isTrue = false;
- }
- else
- {
- Console.WriteLine("The egn is incorrect. Please, try again");
- continue;
- }
- }
- Console.WriteLine(egn);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement