# Basic Banking System
# Initialize balance
balance = 0.0
# Display welcome message
print("Welcome to the Basic Banking System")
# While loop for continuous operations
while True:
print("\nChoose an operation:")
print("1. Deposit")
print("2. Withdraw")
print("3. Check Balance")
print("4. Exit")
# User input
choice = input("Enter your choice (1-4): ")
# Control statements
if choice == '1':
amount = float(input("Enter deposit amount: "))
if amount > 0:
balance += amount
print(f"₹{amount} deposited successfully.")
else:
print("Invalid amount. Please enter a positive value.")
elif choice == '2':
amount = float(input("Enter withdrawal amount: "))
if 0 < amount <= balance:
balance -= amount
print(f"₹{amount} withdrawn successfully.")
elif amount > balance:
print("Insufficient balance.")
else:
print("Invalid amount. Please enter a positive value.")
elif choice == '3':
print(f"Current Balance: ₹{balance}")
elif choice == '4':
print("Exiting... Thank you for using the banking system!")
break
else:
print("Invalid choice! Please enter a number between 1 and 4.")
# End of Program