31.5k views
2 votes
print out the price with every output, so for veggie burger print Add 20 AED to 100 and print out the total No cheese print Subtract 10 AED from 100 and print out the total No alterations print out the full price as 100 AED

User Abinet
by
8.0k points

1 Answer

2 votes

Answer:

Step-by-step explanation:

Here's an example code using Python to achieve the desired output:

This code first initializes the price variable to 100. Then, it prompts the user to input the type of burger they want. If the user inputs "veggie burger", the code adds 20 to the price variable and prints out the updated price. If the user inputs "no cheese", the code subtracts 10 from the price variable and prints out the updated price. If the user inputs anything else, the code prints out the full price of 100 AED.

print out the price with every output, so for veggie burger print Add 20 AED to 100 and-example-1
User OtagoHarbour
by
8.4k points