in my program execute is print a Unknown character what meaning? Where did it come from unknown character? why print it in console. please help... my code is here
static void Main(string[] args)
{
char[] array = new char[10];
for (int i = 0; i < 10; i++){
array[i] =(char) i;
}
for(int i = 0; i < 10; i++)
{
Console.Write(array[i] + "\n");
}
Console.Read();
}
it is a simple code but c# not recognize my code after update windows 10 my program become it. maybe is problem from update windows 10 ?
execute my code is
http://uupload.ir/files/5tdi_problem_print_unknow_character.png
but most It should be 1 2 3 4 5 6 7 8 9
Please help me.. tanks. What can I do to not write the irrelevant square? enter image description here
picture from my execute http://s9.picofile.com/file/8312295492/problem_print_unknow_character.png
OR http://uupload.ir/files/5tdi_problem_print_unknow_character.png