public class Exercise2{
public static void main(String[] args){
int sum=0;
int fee;
//Prints 10 statements
for(int i=1; i<11; i++){
for(fee=1; fee<11; fee=(40000*(3/100))) //Calculates the fees
fee++;
System.out.println("The tution fee for year "+i+" is "+fee); //Results
}
}
}
This is my code so far and now I'm stuck on how to use the for loop to calculate the fee each year. Help?
Its not working correctly I need help

New Topic/Question
Reply



MultiQuote




|