If this is your home assignment then I will suggest you to try yourself. Have you tired anything to start ?
Please, try to learn yourself, which is the best wau to learn I think. If you are expecting code, may some one can give you, but that will not help you for longer run.
Try to create one win form, add button, textbox and use Sub, add methods, call methods on button call with the value preseed by key try to calculate and move ahead slowly, on that time if you need help on code, logic ask here, everyone will help you.
All the best !
Cheers !
Abhijit
kishore_guruju-3194, if this helps please login to Mark As Answer. | Alert Moderator