price and size

Home Forums C Programming price and size

Viewing 1 reply thread
  • Author
    Posts
    • #2062
      Anonymous
      Inactive

      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
      Humayan
      Participant

      You could do :
       

       
       
      if you just needed the logic……

Viewing 1 reply thread
  • You must be logged in to reply to this topic.