A Bash script to calculate simple interest based on user input.
This project provides a simple command-line tool to calculate simple interest using principal, rate, and time period.
Simple Interest = (Principal x Rate x Time) / 100
- Clone the repository
- Run the script: bash simple-interest.sh
- Enter the values when prompted:
- Principal amount
- Rate of interest
- Time period (in years)
- Principal = 1000
- Rate = 5
- Time = 2
- Simple Interest = (1000 x 5 x 2) / 100 = 100
- simple-interest.sh - Main Bash script for calculation
Apache 2.0