Why should the input numbers be converted into ASC codes when programming in C language?
You use getch () to get the value of z[i]. Getch returns a non-numeric character whose value is an asc code. The output after forced conversion is not a character, but the value of the character, which will not become the value you want, and can only be subtracted. Or no getch.