Interest Calculator using C++

c++ is very fast because it is a memory managing language. today we made a interest calculator using c++.


Today, I started learning C++ concepts and really learned some things.

I practiced them on vscode and made a simple interest calculator NAtive Application.

First, open your code editor then we have to define a function operation for calculating the interest of the value which we will give to the program.

//This is function for calculation of Interest
float FinalAmount(int currentmoney, float factor){
    return currentmoney+((currentmoney*factor)/100);

Now, we will go to main( ) and write the code for input value and output value.

for input we will use cin>>Your variable;

for output we will right cout<<“Text to Print”<<Variable <<endl;

*endl is used for line break as we use <br> in .html

 int money;
    float Interest;
    cout<<"Enter the money you have"<<endl;
    cout<<money<<" Rs. you have now"<<endl;
    cout<<"Now Enter the interest rate"<<endl;
    cout<<"If you have "<<money<<" and Interest Rate is "
        <<Interest<<" Then Final Amount will be "
    cout<<"Where Interest Amount is "
    cout<<money<<" + "<<(FinalAmount(money,Interest) - money)
        <<" = "<<FinalAmount(money,Interest)<<"Rs."<<endl;
    cout<<"Thank You!"<<endl;

The final code will look like this,

Interest Calculator using C++

Thank You!

Share your love
Default image
Coding Hindi
Articles: 38

Leave a Reply

Your email address will not be published.

I'm not a robot *Captcha loading...

10 Best Chrome Extensions for Developers in 2022. 10 Best Free C Programming Courses to Take in 2022 9 Most Useful Tools For Instagram Growth.[2022] What is an operating system ? How to Make Money Online from Instagram in India?