import java.io.*;
class fact
{
public static void main (String args[]) throws IOException
{
int p, r, t ;
InputStreamReader ir=new InputStreamReader(System.in);
BufferedReader br =new BufferedReader(ir);
System.out.println("Please Enter the Principle Amount");
p=Integer.parseInt(br.readLine());
System.out.println("Please Enter the Rate of Interst in percentage");
r=Integer.parseInt(br.readLine());
System.out.println("Please Enter the Time in year");
t=Integer.parseInt(br.readLine());
int intrest =(p*r*t)/100;
System.out.println("Interst Given by the Person =" +intrest);
}
}
--------------------Output--------------------
Please Enter the Principle Amount
5600
Please Enter the Rate of Interst
6
Please Enter the Time
1
Interst Given by the Person =336
Process completed.
No comments:
Post a Comment