Computer Science, asked by pbguardian07, 1 month ago

1. Write a program to take as input the principal, rate and time. Then calculate the simple interest and amount using the formulas SI=P*T*R/100 & A= P + SI, respectively. Display the simple interest and Amount as output.



2. Write a program to take as input two numbers a and b. If a is greater than b, then divide a by b and give the output. Else if b is greater than a, then divide b by a and give the output. But if a and b are equal, then display "EQUAL NUMBERS!"

Answers

Answered by ramvaros
0

Answer:

1.

P = input("Enter principal:")

T = input("Time in months:")

R=input("Rate in percent per annum:")

SI = P*R*T/100

A = P+SI

print("Simple Interest:",SI)

print("Amount:",A)

Explanation:

I will answer the second part after you have marked my answer as brainliest.

Similar questions