Write a program to find the sum of simple interest,compound interest calculated yearly,and compound interest calculated half yearly for the given values.
Input Format
Consists of three integer values
First line consists of principal amount
Second line consists of number of years
Third line consists of rate of interest
Constraints
1<=p<=10000
1<=r<=10
1<=t<=10
Output Format
Consists of a single float value which is the sum of simple interest,compound interest caluclated yearly,and compound interest calculated half yearly.
Sample Input 0
500
2
10
Sample Output 0
312.75
Sample Input 1
100
2
5
Sample Output 1
30.63
Answers
Answered by
0
Answer:
djksfhajkhfdkjhfjkhaj kjahfkjashdfjkha fksahdfkjahkjfhkja fkahkjfh
Explanation:
Similar questions