OK. What have you got so far. If you were hoping someone would just plop down some code for you then you're in the wrong place. This is where you get help AFTER you've put in some effort and at least given it a try.
hi..i have already done the code but i have problem
And since you refuse to share that you are left as the only person who can do anything about the problem. I'm not sure what you think we can do about your error without being able to see it. When you decide you want our help then you should come back here with the code and we will take a look at where you went wrong.
Please read the forum rules first and learn how to post code properly. I'd hate for your answers to get delayed further because you don't follow the rules.