How to calculate whether a pencil will fit into a box or not?


can anyone can explain the ternary condition in printf…??

The length of pencil should be less than or equal to body diagonal of box… i guess

1 Like

[quote=“s5960r, post:2, topic:44405”]
The length of pencil should be less than or equal to body diagonal of box
[/quote]can you send me the proof of the statement

pythagorus theorem
length of pencil should be less than or equal to length of diagonal

1 Like