Skip to content
C

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

text
principal = 1000, rate = 5, time = 2

Example Output

text
Simple Interest: 100.0

Concepts Covered

Function definition, parameters, return, arithmetic operations.

Input (stdin)

Output

Run your code to see output here...