if (breakfast > 10)
{finalcost1 = breakfast * cost_of_breakfast - (cost_of_breakfast * discount_of_breakfast);
}
else
{finalcost1 = breakfast * cost_of_breakfast;
}
if (lunch > 15)
{finalcost2 = lunch * cost_of_lunch - (cost_of_lunch * discount_of_lunch);
}
else
{finalcost2 = lunch * cost_of_lunch;
}
if (dinner > 8)
{finalcost3 = dinner * cost_of_dinner - (cost_of_dinner * discount_of_dinner);
}
else
{finalcost3 = dinner * cost_of_dinner;
}
what should i do??
thanks a lot.

New Topic/Question
Reply
MultiQuote








|