my salary3

//Future Value of money/Compound interest
clear
n=input("ระยะเวลา(ปี)......");
p=input("ยอดฝากรายเดือน.......");
i=input("ดอกเบี้ยต่อปี.......");
for j=1:n
f(j)=(p*12)*(1+(i/100))^j;
j=j+1;
end
printf("\nเงินที่ได้รับในปีที่..%dเท่ากับ..%.3f\n",n,f(j=n))

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

Find your dream computer specification