Message from C, C++ talks
So, go ahead with it too. It's pretty simple program. And what you are doing now is not asking questions. You just want someone to solve your problem. It's not a right approach. You have to at least start solving it and asking some certain questions about what exactly you can't do and what exactly you want to know. And before asking just use Google. If you doesn't follow what I said you will possibly never become a programmer.