Provides to you, the basics of Java and its programs, which are of the ICSE standard in India, as well as the facility to ask questions and get the programs done in no time. Useful for home works. Just copy, paste and compile the programs. Contact us at email@example.com
Friday, 1 April 2011
To calculate Simple Interest (S.I.)
Question 4 : Write a program in Java to calculate Simple Interest (Principal, Rate, & Time to be given by the user).
Java Program :
public static void main(int p,int r,int t)
System.out.print("The Simple interest on Rs. "+p+" for "+t+" year/s at "+r+"% rate of interest = Rs. "+si);
The Simple interest on Rs. 100 for 1 years at 10% rate of interest = Rs. 10