//Title of this code
//Rextester.Program.Main is the entry point for your code. Don't change it.
//Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
public class Program
public static void Main(string[] args)
int number = 1234;
int length = 4; //type the length of the number here, e.g. 4 digits.
int[] num = new int[length];
string[] stringNum = new string[length];
stringNum = ReturnStringArray(number, num, length);
}
public static string[] ReturnStringArray(int number, int[] num, int length)
num = ReverseOrder(number, length);
//creates an array with all digits in a string format
stringNum = StringArray(num, length);
1234