import java.util.*;
class SimpleInterset
{
public static void main(String args[])
{
float p,n,r,si;
Scanner sc = new Scanner(System.in);
System.out.println("Enter Principal:");
p=sc.nextFloat();
System.out.println("Enter years:");
n=sc.nextFloat();
System.out.println("Enter rate of interest:");
r=sc.nextFloat();
si=(p*n*r)/100;
System.out.println("Simple Interest="+si);
}
}
class SimpleInterset
{
public static void main(String args[])
{
float p,n,r,si;
Scanner sc = new Scanner(System.in);
System.out.println("Enter Principal:");
p=sc.nextFloat();
System.out.println("Enter years:");
n=sc.nextFloat();
System.out.println("Enter rate of interest:");
r=sc.nextFloat();
si=(p*n*r)/100;
System.out.println("Simple Interest="+si);
}
}
No comments :
Post a Comment