Declare A, B, Wallet, Balance, Total Price: Start
Declare A, B, Wallet, Balance, Total Price: Start
a=1 a=2
YES
NO
NO NO
Conan
b=1 b=2
Naruto Marvel
b=3
YES
option=111
option=111 option=111
YES YES YES
NO NO NO
Quantity, budget
Quantity, budget Quantity, budget
Total price = quantity 6 Total price = quantity 7 Total price = quantity 7
Balance= wallet total price Balance= wallet total price Balance= wallet total price
Stop
Start
a=2 a=3
YES
NO
Enter 1 for harry potter RM 90
NO NO
option=111
option=111 option=111
YES YES YES
NO NO NO
Quantity, budget
Quantity, budget Quantity, budget
Total price = quantity 90 Total price = quantity 60 Total price = quantity 120
Balance= wallet total price Balance= wallet total price Balance= wallet total price
Stop
Start
a=3 a=4
YES
NO
Enter 1 for K-Pop RM8
NO NO
option=111
option=111 option=111
YES YES YES
NO NO NO
Quantity, budget
Quantity, budget Quantity, budget
Total price = quantity 8 Total price = quantity 6 Total price = quantity 9
Balance= wallet total price Balance= wallet total price Balance= wallet total price
Stop
Start
a=4
YES
NO NO
option=111
option=111 option=111
YES YES YES
NO NO NO
Quantity, budget
Quantity, budget Quantity, budget
Total price = quantity 66 Total price = quantity 15 Total price = quantity 122
Balance= wallet total price Balance= wallet total price Balance= wallet total price
Stop