Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Simple Interest Calculator

A small Bash script that calculates simple interest from user input.

Formula

Simple Interest = (Principal x Rate x Time) / 100
  • Principal: the initial amount of money
  • Rate: the annual rate of interest, in percent
  • Time: the time period, in years

Usage

chmod +x simple-interest.sh
./simple-interest.sh

The script prompts for the principal, the rate of interest and the time period, then prints the simple interest.

Example

Enter the principal amount: 1000
Enter the rate of interest (%): 5
Enter the time period (years): 2
Simple interest = 100

Contributing

See CONTRIBUTING.md. Please follow the Code of Conduct.

License

Licensed under the Apache License 2.0. See LICENSE.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages