Python program to calculate simple interests.

In this python basic program, we will calculate simple interests using the formula P+(P/r)*t.

Steps to solve the program
  1. Take the principal amount, rate of interest, and number of years as input.
  2. Calculate the simple interest using the formula P+(P/r)*t, where P is the principal amount, r is the rate of interest, t is the number of years.
  3. Print the output.
				
					p = 1000
r = 10
t = 2

amount = p+(p/r)*t

print("Amount payable: ",amount)
				
			

Output :

				
					Amount payable:  1200.0
				
			

check whether the given number is an Armstrong number or not.

print the current date in the given format

Leave a Comment