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.