-
-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathProgram.java
More file actions
19 lines (16 loc) · 441 Bytes
/
Program.java
File metadata and controls
19 lines (16 loc) · 441 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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.