Anyway, I'd consider not using atoi on the array, but rather casting them as ints. It won't even let me compile the code you have there. atoi expects a string, not a single char.
The style you have used in C, and have used it incorrectly. You have failed to null your arrays prior to use, so leaving them in an undefined state. I don't remember if scanf auto null-terminates, but I wouldn't be surprised if it doesn't.
Not to mention, you can just use scanf("%i", myInt); without having to read chars and cast/convert across.
Alternatively, your convering from 1 char to an int. atoi is not required as single chars are interchangable with int's anyways. int i = c; should be perfectly valid.
Probably the wrong place to post this, but shouldn't we have a sticky that explains how to use the # button?
I could cut and paste and do the indentation myself, but it seems that every other post is the same way, and I don't have enough experience to 'see' the code when everything is left justified.