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.
Don't stuck on it, use pyton or java, in pyton they work on native function, i tested from x-0.9 to x+0.9 all func in cpp,
trunc, ceil, round, etc... it's bad way - just use pyton! print(int(x)) it's all
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 →
Don't stuck on it, use pyton or java, in pyton they work on native function, i tested from x-0.9 to x+0.9 all func in cpp, trunc, ceil, round, etc... it's bad way - just use pyton! print(int(x)) it's all