Uh are you having some issue...?
All I can tell you is clrscr() isn't really necessary and I believe it's not standard? Could be wrong though.
And your missing a space in your output on program 2.
The only thing I see is the space issue, when you say analyze do you mean say what the code will produce, or find a problem? You're question is unclear...