<=Back
The interest accrued I for a principal P after a period of T at the rate R is given by the formula I=PxRxT. Write a Pascal program that prompts a user to enter the principal amount in the main program and then pass this value to a procedure named compute. The procedure calculates the interest at a rate of 12% per annum for a period of 5 years. The procedure then returns the interest to main program for output
 Viewed: 507 times
Share in: