leetle

Daily challenge for 2025-07-17

198. Calculate Simple Interest

Write a function solve that takes principal amount, rate of interest (as percentage), and time (in years), and returns the simple interest calculated using the formula: SI = (P × R × T) / 100.

Example:
Input: principal = 1000, rate = 5, time = 2
Output: 100.0

Run this challenge interactively in Python or JavaScript when the app loads.