Skip to main content

Problem Statement

Ravi has a savings account in a bank and frequently uses the ATM to withdraw money. To ensure customers always maintain a minimum amount in their account, the bank has introduced the following rules:
  • The withdrawal amount must not exceed the available account balance.
  • A minimum balance of ₹1000 must remain in the account after the withdrawal.
Write a C program that accepts choices from the user for banking transactions: check balance, withdrawal amount, and deposit amount.

Solution

Input

Output