> Or something like that. The getch() thing is right, right?
Does it work? If it does, it's right!
One thing that could be said about getch() is the fact that some compilers don't have it. It's non standard. So, this code will not be portable because of that. If that's not an issue for you right now, or you just don't have an opinion yet, don't worry about it. IMO, it's fine for such a small personal program.
Oh, you need a semi colon after the call to getch() to be clear.