Sponsor

banner image

recent posts

Suppose that tuition fees for university is 20000 rs in the current year and increase by 8% per year. write a program that display a table showing tuition fees for 10 years

import java.util.*;
class print
{
public static void main(String args[])
{
int fees,k=1;
fees=20000;
for(int i=1;i<=10;i++)
{
System.out.print("tution fees for " +k );
System.out.println("year ="+fees);
fees=fees+(fees*8)/100;
k++;
}
}
}


 




Suppose that tuition fees for university is 20000 rs in the current year and increase by 8% per year. write a program that display a table showing tuition fees for 10 years Suppose that tuition fees for university is 20000 rs in the current year and increase by 8% per year. write a program that display a table showing tuition fees for  10 years Reviewed by Aishwarya chauhan on 1:27 AM Rating: 5

No comments:

Powered by Blogger.