Problem 1: Simple Interest Calculator Function
Easypython
Problem Description
Write a function simple_interest(principal, rate, time) that calculates and returns the simple interest using the formula: (principal * rate * time) / 100.
Input
Three numbers: principal amount, rate of interest, and time in years.
Output
A single number representing the calculated simple interest.
Constraints
- All inputs will be positive numbers.
Example Input
textprincipal = 1000, rate = 5, time = 2
Example Output
textSimple Interest: 100.0
Concepts Covered
Function definition, parameters, return, arithmetic operations.