Compound Interest Calculator - Xiao-XC/C-Practice-Projects GitHub Wiki

Compound-Interest-Calculator

Type: Bro Code course project Date: Sept 2026 Concepts: mixed double/int input, percent-to-decimal conversion, pow(), escaping % in printf

What it does

Calculates the future value of an investment from a principal, interest rate, number of years, and compounding frequency.

What I learned

A lone % in a printf format string is invalid because % starts a format specifier, so a literal percent sign has to be written %%. I debugged and fixed this myself after it was flagged.

Source

[View the code on GitHub](https://github.com/Xiao-XC/C-Practice-Projects/tree/main/Compound-Interest-Calculator)

Back to Home