Originally Posted by TEJUS
i want to know wheter my program is good?
For a beginner, any program that runs correctly is great.
But to learn proper style you need to study how good programs are written.
Good style consists of such things as:
* dividing a program up into subroutines (functions in C)
* not using more variables than you absolutely have to
* giving your variables informative names so readers don't have to figure out what they're for.
* comments are also useful, especially for non-trivial things (don't just say what a simple line of code does in English, that's just for textbook examples).
Also, some ascii graphics couldn't hurt!