price and size

Home Forums C Programming price and size

This topic contains 1 reply, has 2 voices, and was last updated by  Humayan 10 years, 9 months ago.

  • Author
  • #2062


    i just want to ask the code of this problem: if you buy a t-shirt worth of more than 500 and the size is XL, you will have a discount of 100 if the price is more than 400 and the size is L, you have a 50 discount…Cry

  • #3323


    You could do :

    if you just needed the logic……

You must be logged in to reply to this topic.