Calculate compound interest.
EasyProblem Statement
Calculate compound interest.
Sample Input
principal = 1000, rate = 5, time = 2
Sample Output
Compound Interest = 1102.50
Limits
Time: 2s · Memory: 256 MB
Code Editor
00:00
#include <stdio.h>
int main() {
float principal = 1000, rate = 5, time = 2;
float compound_interest;
// Logic to calculate compound interest
return 0;
}
Input
principal = 1000, rate = 5, time = 2
Expected Output
Compound Interest = 1102.50