What exactly do you have trouble with?
We're not here to write your program for you, only to help you with specific questions about details where you're stuck.
Yes, like s_khardenavis said, you can use take the input of the user for p, principal, for r, rate of interest, then for t, time, and then display i, which is prt, or p*r*t.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.