Nah man the last line of your code is unreachable and will get optimized out. You should
- while true {
- cut pie into 16ths
- give out 15 of them
- your new pie is the 16th slice
- }
It could be. But this was a math question, not a health question.
Also, my other answer would have been ‘carefully measure out 81g of cake, wad it up into a ball. Repeat 14 more times.’ That prob woulda been worse.
Hey there u/sasoqik, thanks for posting to r/technicallythetruth!
Please recheck if your post breaks any rules. If it does, please delete this post.
Also, reposting and posting obvious non-TTT posts can lead to a ban.
Send us a Modmail or Report this post if you have a problem with this post.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
Nah man the last line of your code is unreachable and will get optimized out. You should - while true { - cut pie into 16ths - give out 15 of them - your new pie is the 16th slice - }
what programming language is this
It's just pseudo code
Yeah?
Well, Sudo stop that.
OCYRThisMeansWar is not in the sudoers file. This incident will be reported.
Santa knows so no presents for you this year. Good one tho
😜
Piethon.
i see what ya did there
But what if you’re cutting cake?
Or cut into 15 and give yourself the bigger slice
360 divided by 15 is 24, therefore each slice is 24degress of the circumference of the cake.
Or 2pi radians, therefore 2pi/15.
Cut into 1/3’s , then five slices in each third
Cut into 1/5’s, then 3 slices in each fifth
By cutting the cake.
r/technicallythetruth
r/alreadyhere
Just cut it 14 times parallel. Didn't say it has to be equal
It says 81g per slice.
the comments are turning into math, math of all the subjects, MATH
With 14 cuts.
Like ham slices isn't it obvious lol ; D
All of you are overthinking.
Cut into eighths.
Cut 7 of those in half.
Now you've got one double slice and the other pieces are smaller than a serving size. You're under thinking this pretty hard.
Ok. Have it your way.
Cut into 16 pieces. Eat one of them.
Put the cake back on the shelf in the store.
arent the employees supposed to do this, and if they do, isnt an entire shelf full of cake unhealthy
It could be. But this was a math question, not a health question.
Also, my other answer would have been ‘carefully measure out 81g of cake, wad it up into a ball. Repeat 14 more times.’ That prob woulda been worse.