Skip to content
CampusEduX

Problem 1: Simple Interest Calculator Function

Easypython
Learn the Concept: Functions

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.

Related Problems

  • Problem 2: Even or Odd Checker Function
    Easy · python
    Solve Problem
  • Problem 3: Average of a List Function
    Easy · python
    Solve Problem
  • Problem 4: Greeting Function with Default Argument
    Easy · python
    Solve Problem

Input (stdin)

Output

Run your code to see output here...