Jak wyjąć odsetki dowolnej liczby

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);//

    }
}
I AM A DJ BUT I LIKE CODING BELIEVE ME