[Solved] How to give mutiple spaces to an integer to shown on form as a string in c#? [closed]


You can convert your number to a string, split into characters and join these again with spaces:

int i = 690110;
char[] chars = i.ToString().ToCharArray();
// To get a formatted string:
string s = string.Join("   ",chars);
// To get the digits:
int[] digits = chars.Select(x=>Convert.ToInt32(x)).ToArray();

3

solved How to give mutiple spaces to an integer to shown on form as a string in c#? [closed]