Programming Example
During a special sale at a store, a 10% discount is taken on purchases over ₹ 1000/-. Write a program that asks for the amount of purchases, then calculates the discounted price.
Study this program carefully to understand the logic, output, and explanation in a structured way.