Home Forums C Programming price and size Reply To: price and size

#3323
Humayan
Participant

You could do :
 

enum size { XL , L }  
if ( tShirtWorth > 500 && size == XL )
{
    discount = 100;
}
else if ( price > 400 && size == L )
{
   discount = 50;
}

 
 
if you just needed the logic……