Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication6
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12.  
  13. int x=Convert.ToInt32(Console.ReadLine());
  14. int y = Convert.ToInt32(Console.ReadLine());
  15. string nes=Convert.ToString(x);
  16. string bla = Convert.ToString(y);
  17. int[] niz_a= new int[4];
  18. int[] niz_b = new int[4];
  19. int i;
  20. if(x<5000 && x>0)
  21. {
  22. for (i = 3; i >= 4; i--) {
  23. niz_b[i] =x%10;
  24. niz_a[i] = y % 10;
  25. x = x / 10;
  26. y = y / 10;
  27. }
  28.  
  29. for (i= 0; i < 4; i++) {
  30. Console.WriteLine(niz_a[i]);
  31. Console.WriteLine(niz_b[i]);
  32. }
  33. Console.ReadLine();
  34. }
  35.  
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement