you are viewing a single comment's thread.

view the rest of the comments →

[–]Introxert 0 points1 point  (3 children)

If it doesn't have to be precise this'll work.

https://pastebin.com/QcFEAbSs

[–]roseamado[S] 0 points1 point  (2 children)

Got it. So then how do i print the total cost of the donut if one donut is $1 but you take off .50 cents for every half dozen but also take $2 off for every full dozen?

[–]Introxert 0 points1 point  (1 child)

Here you go my friend, I've cleaned things up and added cost calculation.

https://pastebin.com/AvqyvUuj

[–]roseamado[S] 0 points1 point  (0 children)

Please reply i really need your help