Say you have:
Int32 I = Convert.ToChar(Console.ReadLine());
So you enter ‘a’ into the console, which would make the output “97”
How could I split that output into two separate integers or an array? So, “9” and “7” instead of “97”
I’m coding in C#, thanks! 🙂
I am not sure what you are trying to do here, but if you really want to do this, you could convert it to a string then create a character array like so:
This will give you a char array with a 9, and a 7 in it.
Hope this helps.