Hi ALL,
Here I wrote a program for Interest Fees Doubled Program in java.
/**
*
* @author Balamurgan
M
*/
public class TutionFeesDoubled {
public static void
main(String arg[]){
System.out.println(" Tution fee calcualtion");
int fee=10000;
int year=1;
int n=100;
int amt=0;
for(int
i=1;i<=n;i++)
{
amt+=((fee*7)/100);
//
System.out.println("amt "+amt);
if(amt>=fee){
System.out.println("Year to doubled the amount "+i);
break;
}
}
}
}
No comments:
Post a Comment