Home › Forums › C Programming › price and size › Reply To: price and size
February 12, 2008 at 3:56 pm
#3323
Humayan
Participant
You could do :
1 2 3 4 5 6 7 8 9 | enum size { XL , L } <br /> if ( tShirtWorth > 500 && size == XL )<br /> {<br /> discount = 100;<br /> }<br /> else if ( price > 400 && size == L )<br /> {<br /> discount = 50;<br /> } |
if you just needed the logic……