• + 13 comments

    when you use '/'(divide operator) it returns you the quotient.For eg: when you write (20/100) the quotient is 0. Therefore you need to write 12*20/100 that gives you 240/100 = 2.40 ....... (12 is mealCost and 20 is tipPercent)