Programming Examples

Python credit card program


Credit Card Program

Solution

amount=int(input("Enter the amount:"))
if(amount<=1000):
       print("Your charge is accepted.")
if(amount>1000):
       print("The amount exceeds your credit limit.")
Output/ Explanation:

Enter the amount:1000

Your charge is accepted.


Enter the amount:1200

The amount exceeds your credit limit.

Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad