Computer Science, asked by sonaltiwary8, 6 months ago

write a program to calculate compound ​

Answers

Answered by mukesh9621193138
1

Answer:

In this tutorial, we will write a java program to calculate compound interest. Compound Interest Formula Compound interest is calculated ...

Explanation:

please koi ek baar brainliest bana do yarr

Answered by SandraSankar
1

In what there are python,Java , C++

Formula to calculate compound interest annually is given by:

A = P(1 + R/100) t

Compound Interest = A – P

Where,

A is amount

P is principle amount

R is the rate and

T is the time span

this is for python

A class named Demo contains the main function wherein a principal value, a rate and a time are initialized. The formula for compound interest, principal * ((1 + rate/100) power time) is initialized to a value and the output is calculated. This is displayed on the console.

for Java

#include<iostream>

#include<math.h>

using namespace std;

int main()

{

float p,r,t,ci;

cout<<"Enter Principle, Rate and Time:\n";

cin>>p>>r>>t;

C++

Please follow me

Similar questions
Science, 10 months ago