hello
i have a problem with encripting a string.
the encription method is called hill cipher
the functions ToNum and ToChar are excluded because they just convert from a character to a number(a-1,b-2...)and from number to character
now the problem i have is with printing out the encripted code
for example
if the encription matrix is 1 2
3 4
and the entered letters are e and f
it should encript e and f as q and k
but instead it prints out random garbadge.
if anything about my question is unclear(because honestly im so confused i can hardly think) feel free to ask
i think the problem is in the last for loop in main
thanks in advance :)