Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. int[] arr = Console.ReadLine().Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).Select(int.Parse).ToArray();
  2. int[] arr2 = new int[arr.Length];
  3.  
  4. while (arr[2]!= 25)
  5. {
  6. if (arr[3]==24)
  7. {
  8. arr2 = arr;
  9.  
  10. }
  11.  
  12. arr = "23 24 25 26".Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).Select(int.Parse).ToArray();
  13.  
  14. }
  15. Console.WriteLine(string.Join(" ",arr2));
  16.  
  17. Console.WriteLine(string.Join(" ",arr));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement