Advertisement
svetlyoek

Untitled

Feb 6th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. namespace ConsoleApp157
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int[] arr = Console.ReadLine().Split().Select(int.Parse).ToArray();
  10. int current = 0;
  11. for(int i=0;i<arr.Length;i++)
  12. {
  13. current = arr[i];
  14. if(current==arr[i+1])
  15. {
  16. Console.WriteLine();
  17. }
  18. }
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement