Using Programming to solve a math question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Using Programming to solve a math question

The math questions goes, if a building has unlimited levels and on each level are 12 apartments. On what floor is “N”?

22nd Nov 2021, 5:59 PM
Snapp Player
Snapp Player - avatar
2 Answers
+ 4
That is one ridiculous problem, a building with unlimited levels? I'm guessing the penthouse is called heaven 😁 let floor_number = N / 12 If there is remainder from above division, increment floor_number by one.
22nd Nov 2021, 6:50 PM
Ipang
+ 1
It's very simple, what grade are you in? ☺️ You should be able to solve such problems.
22nd Nov 2021, 6:48 PM
Solo
Solo - avatar