they're still teaching Pascal? That's as obsolete as Algol or PL/I !!
If you can do the most basic I/O and calculations, this should be no problem.
Not sure which constants you would use here. User input only is needed.
I guess you could generalize it to allow input of an arbitrary (constant) number of items...
Write a Pascal program where the user is able to pick two items, receive the price and receive total price. Using constants.
1 answer