// 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.