using System.Collections.Generic;
using System.Threading.Tasks;
namespace ConsoleApplication2
static void Main(string[] args)
Console.WriteLine("Введите любое четырехзначное число и нажмите Enter");
c = (x % 1000 - b - a)/100;
d = (x % 10000 - c - b - a)/1000;
Console.WriteLine("Полученное число в обратном порядке" + a + b + c + d);