คำนวณดอกเบี้ยธรรมดาใน Python 3.x
สูตร: Simple Interest = (P × T × R) / 100
- P = เงินต้น (Principal)
- T = เวลา (Time)
- R = อัตราดอกเบี้ย (Rate)
ตัวอย่าง: P=1000, R=1, T=2 → SI = 20.0
โค้ดตัวอย่าง
P = 1000
R = 1
T = 2
SI = (P * R * T) / 100
print("simple interest is", SI)
ผลลัพธ์
simple interest is 20.0

สรุป
เรียนรู้สูตรและการคำนวณดอกเบี้ยธรรมดา (Simple Interest) ใน Python