Loading Posts...

Write a Java Program to Calculate Simple Interest(SI).

Write a Java Program to Calculate Simple Interest(SI).
import java.io.*;
import java.util.*;
public class SI
{
public static void main(String arg[])
{
Scanner sc=new Scanner(System.in);
int p,r,t,SI;
System.out.println("enter p=");
p=sc.nextInt();
System.out.println("enter r=");
r=sc.nextInt();
System.out.println("enter t=");
t=sc.nextInt();
SI=(p*r*t)/100;
System.out.println("result="+SI);
}
}

 

krish..

The author didnt add any Information to his profile yet

Leave a Comment

Loading Posts...
Inline
Inline