Calculate simple interest using the formula I=P*N*R ,where P is the principal amount,
N is the number of years and R is the rate. Accept the values of P,N,R from the user in python
Answers
Answered by
3
Answer:-
This is the program to calculate simple interest.
p=float(input("Enter the principal: "))
r=float(input("Enter the rate of interest: "))
t=float(input("Enter the time period in years: "))
si=p*r*t/100
print("Simple Interest is: ",si)
Answered by
3
Answer:
This program is an extract of java program to calculate simple interest...
double p=sc.nextDouble() ; //principal
double r=sc.nextDouble() ; //rate
int t=sc.nextInt() ; //no. of yrs
double si=0.0;
si=(p*r*t) /100;
System. out. println("Simple interest="+si) ;
Similar questions
India Languages,
3 months ago
Hindi,
3 months ago
Social Sciences,
3 months ago
English,
6 months ago
Hindi,
6 months ago
English,
11 months ago
Geography,
11 months ago