Kali ini saya akan membagikan tentang mengetahui biaya kuliah di masa depan, . .
Silahkan dicoba, . .
public class FutureTuition {
public static void main(String[] iriahus) {
double tuition = 10000;
int year = 0;
String output = "";
while (year < 10) {
tuition *= 1.05;
year++;
output = "The tuition year " + year + " is " + tuition;
}
System.out.println(output);
}
}
Semoga bermanfaat, . .
0 Response to "Biaya Kuliah di Masa Depan"
Post a Comment