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, 10 months ago.

  • Author
    Posts
  • #2062

    fshabeer
    Member

    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
    Member

    You could do :
     

     
     
    if you just needed the logic……

You must be logged in to reply to this topic.

Share
Tweet
Share
Pin
+1