Sunday, May 5, 2013

Write a java Program to find the Simple Interest rate


import java.lang.*;
import java.io.*;
class Simpleinterest
{
    public static void main(String args[])
    {
        int p=5000,t=12,r=3;
        int interest=((p*t*r)/100);
        System.out.println("The Simple interest is:"+interest);
    }
}

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More