how to take out interest of any number
public class interest
{
public static void main(String args[])
{
int p=9000,r=10,t=2;
float amt;
amt=((p*r*t)/100);
System.out.print("The rate of interest is Rs ="+amt);//
}
}