Welcome to the Ranch
Thank you for using the code button, but you didn't quite get it right; the
[/code] part goes after the code, but I have corrected it, and doesn&aops;t it look better now
You aren't far off.
Make the names of your code reflect what they do;
New3 will mean nothing to you after next week
What does line 13 mean? I think you can delete that line without noticing anything.
Look at this loop, which is the standard way to traverse an array backwards:-
Yes, you do need the slightly awkward syntax but that loop will definitely work for arrays of any size.
Find out what happens if you print escape characters:
The subtraction will work, but consider using the
% remainder operator instead of subtraction. I shall let you work out what to do. I can make that technique work for letters in English, but will fail to allocate numbers correctly for German, French, Spanish,
etc.
Please indent your code correctly; lines 24‑27 are a good example of how not to do it, I am afraid. Always use
{} after
if.