Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5bdda93

Browse files
authored
Merge pull requestpowerexploit#41 from sahilverma0696/sahil_si
Python code to calculate Simple Interest
2 parents408d6a4 +fa6224e commit5bdda93

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎Scripts/simple_interest.py‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Python3 program to find simple interest
2+
# for given principal amount, time and
3+
# rate of interest.
4+
5+
# We can change values here for
6+
# different inputs
7+
P=int(input("Enter the Principal value"))
8+
R=float(input("Enter the rate"))
9+
T=int(input("Enter the time duration"))
10+
11+
# Calculates simple interest
12+
SI= (P*R*T)/100
13+
14+
# Print the resultant value of SI
15+
print("Simple interest is",SI)
16+
17+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp