0vvner's tools
-
PROCEDURE atmScenario() balance = 10000 REPEAT PRINT "Enter choice:" PRINT "1. Display balance" PRINT "2. Deposit money" PRINT "3. Withdraw" PRINT "4. Exit" choice = INPUT("Enter your choice") IF choice = 1 THEN PRINT "Balance in your account is ", balance ELSE IF choice = 2 THEN deposit = INPUT("Enter deposit money") IF deposit + balance > 100000 THEN PRINT "You cannot have more than 1 lakh in your account" ELSE balance = balance + deposit PRINT "New balance is ", balance END IF ELSE IF choice = 3 THEN withdraw = INPUT("Enter withdrawal money") IF withdraw > balance THEN PRINT "Insufficient balance. You only have ", balance ELSE balance = balance - withdraw PRINT "New balance is ", balance END IF END IF UNTIL choice = 4 END PROCEDUREHayHus12๐ 1 karmaMar 23, 2026@Python to pseudocodeit gives its response as a mix of python and pseudocode
