Friday, 17 July 2015

Write a Java Program to Find Simple Interest

Write a Java Program to Find Simple Interest
class prog3
{   
    public static void main(String args[])
    {   
        int n=2,p=10000;
        float r=10,si;
        si=(p*r*n)/100;
        System.out.println("\n Simple Interest:"+si);
    }
}

No comments:

Post a Comment