JAVA QUESTIONS
1.A person deposits ₹500 every month in a savings account. Write a program using a while
loop to calculate the total savings after each month until it reaches ₹5000.
2.A shop offers a discount chart for 1 to 10 items. Each item costs ₹50.
Write a program using a for loop to display the total cost for 1 to 10 items.
3.A water tank can hold 100 liters. Water flows in at 10 liters per minute.
Write a program using a while loop to display the filled capacity after each minute until the
tank is full.