Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- static void Main(string[] args)
- {
- int num1, num2 = 0;
- string st1, st2, st;
- st2 = "stop";
- Console.WriteLine("plz enter a string");
- st1 = Console.ReadLine();
- while (st1 != st2)
- {
- Console.WriteLine("plz enter new string");
- st1 = Console.ReadLine();
- num1 = st1.Length;
- if (num1 > num2)
- st1 = st;
- }
Add Comment
Please, Sign In to add comment