Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 0 additions & 121 deletions C/Program-71

This file was deleted.

64 changes: 0 additions & 64 deletions C/Program-72

This file was deleted.

18 changes: 18 additions & 0 deletions Java/Program-11/Program.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Java program to find compound interest for
// given values.
import java.io.*;

class GFG
{
public static void main(String args[])
{
double principle = 10000, rate = 10.25, time = 5;

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

System.out.println("Compound Interest is "+ CI);
}
}
// This code is contributed by Anant Agarwal.
16 changes: 16 additions & 0 deletions Java/Program-11/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Q. Java Program for compound interest


Formula to calculate compound interest annually is given by:

Compound Interest = P(1 + R/100)r
Where,
P is principle amount
R is the rate and
T is the time span


Input : Principle (amount): 1200
Time: 2
Rate: 5.4
Output : Compound Interest = 1333.099243
19 changes: 19 additions & 0 deletions Java/program-10/Program.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// A Simple JAVA program to compute
// simple interest for given principal
// amount, time and rate of interest.
import java.io.*;

class GFG {
public static void main(String args[])
{
// We can change values here for
// different inputs
float P = 1, R = 1, T = 1;

/* Calculate simple interest */
float SI = (P * T * R) / 100;
System.out.println("Simple interest = " + SI);
}
}

// This code is contributed by Anant Agarwal.
24 changes: 24 additions & 0 deletions Java/program-10/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Q. Java Program for simple interest

Simple interest formula is given by:
Simple Interest = (P x T x R)/100
Where,
P is the principle amount
T is the time and
R is the rate


EXAMPLE1:
Input : P = 10000
R = 5
T = 5
Output :2500
We need to find simple interest on
Rs. 10, 000 at the rate of 5% for 5
units of time.

EXAMPLE2:
Input : P = 3000
R = 7
T = 1
Output :210
File renamed without changes.
65 changes: 0 additions & 65 deletions Program-72

This file was deleted.