Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Introduction to Git and GitHub

# Coursera-IBM-Getting-Started-With-Git-and-Github
## Simple Interest Calculator

A calculator that calculates simple interest given principal, annual rate of interest and time period in years.
Expand Down
12 changes: 6 additions & 6 deletions simple-interest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
# Addtional Authors:
# <your Github username>

# Input:
# p, principal amount
# t, time period in years
# r, annual rate of interest
Input:
p, principal amount
t, time period in years
r, annual rate of interest

# Output:
# simple interest = p*t*r
Output:
simple interest = p*t*r

echo "Enter the principal:"
read p
Expand Down