Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Calculate compound interest.

Easy

Problem 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; }
Log in or sign up to run or submit your code.Log inSign up
Input
principal = 1000, rate = 5, time = 2
Expected Output
Compound Interest = 1102.50