/* L代表利率,Y代表年数,M代表本金,A代表本息和*/
data: L1 type p decimals 3,L2 type p decimals 3,L3 type p decimals 4,
M type i ,
Y1 type i,Y2 type i,Y3 type i,
A1 type p decimals 4 , A2 type p decimals 4, A3 type p decimals 4.
Y1 = 1.
Y2 = 2.
Y3 = 3.
M = 50000.
L1 = '0.02325'.
L2 = '0.03255'.
L3 = '0.042625'.
A1 = M * ( 1 + ( L1 * Y1 ) ).
A2 = M * ( 1 + ( L2 * Y2 ) ).
A3 = M * ( 1 + ( L3 * Y3 ) ).
write:/ '1年的本息和是:' , A1.
write:/ '2年的本息和是:' , A2.
write:/ '3年的本息和是:' , A3.
网友评论