C#C
C#3y ago
Array

Programming a menu on WinForms

Coding a Pizza menu selector that outputs the price, thinking i could mainly use if and else if statements along with /n, a bit stuck on how to make the values add together tho. Should I assign them as double datatypes? I got my code to work to just show them after pressing button, a bit stuck on the math I need to sum these and output a subtotal, make a tax variable and have a total. Anyone think they can help?

I actually was able to get the strings to show, just dont know how to do calculations
image.png
Was this page helpful?