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