8 lines
295 B
Python
8 lines
295 B
Python
# Question: Write a Python program to compute simple interest for a given principal amount, time, and rate of interest.
|
|
|
|
def main(principal: int, time: int, rate: float) -> None:
|
|
print(f"Simple Interest: {principal * rate * time / 100}")
|
|
|
|
if __name__ == '__main__':
|
|
main(10000, 10, 5.0)
|