Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Browse

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Captcha Click on image to update the captcha.

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Captcha Click on image to update the captcha.

Have an account? Sign In Now

You must login to ask question.

Captcha Click on image to update the captcha.

Forgot Password?

Need An Account, Sign Up Here

You must login to add post.

Captcha Click on image to update the captcha.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

OrkTouch

OrkTouch Logo OrkTouch Logo

Mobile menu

Close
Ask a Question
  • Home
  • Questions
  • Articles
  • News
  • Members
  • Groups
  • Badges
  • About Us |
  • Contact Us |
  • FAQs |
  • DMCA |
  • Privacy Policy |
  • Terms of Service
Home/ Questions/Q 2864
In Process
adam
  • 4
adamPundit
Asked: 27 January 20222022-01-27T11:47:54+05:30 2022-01-27T11:47:54+05:30

How to write a program to calculate compound interest

  • 4

What is ‘Compound interest’?
Compound interest  is the addition of interest to the principal sum of a loan or deposit, or in other words, interest on interest. It is the result of reinvesting interest, rather than paying it out, so that interest in the next period is then earned on the principal sum plus previously-accumulated interest. Compound interest is standard in finance and economics.
Compound interest may be contrasted with simple interest, where interest is not added to the principal, so there is no compounding.
Compound Interest formula:
Formula to calculate compound interest annually is given by:
Amount= P(1 + R/100)t

Compound Interest = Amount – P
Where,
P is principle amount
R is the rate and
T is the time span

But, How to write a program to calculate compound interest in C++, PHP, Javascript, JAVA etc

cjavajavascriptphppython
  • 1 1 Answer
  • 69 Views
  • 0 Followers
  • 1
  • Share
    Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp

Leave an answer
Cancel reply

You must login to add an answer.

Captcha Click on image to update the captcha.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  1. Sahil Rai
    2022-01-27T11:51:50+05:30Added an answer on 27 January 2022 at 11:51 am

    C++ // CPP program to find compound interest for // given values. #include <bits/stdc++.h> using namespace std; int main() { double principle = 10000, rate = 5, time = 2; /* Calculate compound interest */ double A = principle * (pow((1 + rate / 100), time)); double CI = A- principle; cout <Read more

    C++

    // CPP program to find compound interest for
    // given values.
    #include <bits/stdc++.h>
    using namespace std;

    int main()
    {
    double principle = 10000, rate = 5, time = 2;

    /* Calculate compound interest */
    double A = principle * (pow((1 + rate / 100), time));
    double CI = A- principle;

    cout << “Compound interest is ” << CI;

    return 0;
    }
    //This Code is Contributed by Sahil Rai.

    See less
    • 2
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
    • 1 Reply
    • orktouch Beginner
      2022-01-29T16:12:10+05:30Replied to answer on 29 January 2022 at 4:12 pm

      good

      good

      See less
      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

Sidebar

Ask A Question
Add A New Post
Submit a URL

Top Members

ieltsjack

ieltsjack

  • 0 Questions
  • 30 Points
Beginner
schonpuppen

schonpuppen

  • 0 Questions
  • 30 Points
Beginner
aseo8889991

aseo8889991

  • 0 Questions
  • 30 Points
Beginner
Keto Blast Gummies

Keto Blast Gummies

  • 0 Questions
  • 29 Points
Beginner

Trending Tags

analytics c coding company computer english google hallux javascript language make money online php programming programs rendez valgus vous А

Explore

  • Home
  • Questions
  • Articles
  • News
  • Members
  • Groups
  • Badges
  • About Us |
  • Contact Us |
  • FAQs |
  • DMCA |
  • Privacy Policy |
  • Terms of Service

© 2020 OrkTouch. All Rights Reserved