import java.util.Scanner;
public class PostGraduate
{ static void interest(){
double p,interest;
Scanner input= new Scanner(System.in);
System.out.print("Enter the price: ");
p = input.nextDouble();
interest=p*0.1;
System.out.println("Interest is: " +interest);
}
public static void main (String args[])
{ interest();
} }
Comments
Leave a comment