Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication6
- {
- class Program
- {
- static void Main(string[] args)
- {
- int x=Convert.ToInt32(Console.ReadLine());
- int y = Convert.ToInt32(Console.ReadLine());
- string nes=Convert.ToString(x);
- string bla = Convert.ToString(y);
- int[] niz_a= new int[4];
- int[] niz_b = new int[4];
- int i;
- if(x<5000 && x>0)
- {
- for (i = 3; i >= 4; i--) {
- niz_b[i] =x%10;
- niz_a[i] = y % 10;
- x = x / 10;
- y = y / 10;
- }
- for (i= 0; i < 4; i++) {
- Console.WriteLine(niz_a[i]);
- Console.WriteLine(niz_b[i]);
- }
- Console.ReadLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement