We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Operators
You are viewing a single comment's thread. Return to all 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)