Wed Feb 11, 2009 9:09 pm
import java.util.Scanner;
public class Exercise4_7 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int tuition = 10000;
int years = 1;
int count = 1;{
}
while (count <= 10) {
tuition+=(tuition*.05);
years++;
count++;
}
System.out.println("The tuition" + tuition + "is" + years);
}
}
Sat Feb 14, 2009 10:17 am
while (count <= 10) {
tuition+=(tuition*.05);
years++;
count++;
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.