diff --git a/java/Simple_Interest.java b/java/Simple_Interest.java new file mode 100644 index 00000000..259abab3 --- /dev/null +++ b/java/Simple_Interest.java @@ -0,0 +1,18 @@ +import java.util.Scanner; +public class Simple_Interest +{ + public static void main(String args[]) + { + float p, r, t; + Scanner s = new Scanner(System.in); + System.out.print("Enter the Principal : "); + p = s.nextFloat(); + System.out.print("Enter the Rate of interest : "); + r = s.nextFloat(); + System.out.print("Enter the Time period : "); + t = s.nextFloat(); + float si; + si = (r * t * p) / 100; + System.out.print("The Simple Interest is : " + si); + } +} \ No newline at end of file