Puzzle | Minimum distance for Lizard | Java program to find minimum distance to be travelled by lizard ; side of the cube ; understand from diagram ; understand from diagram ; minimum distance
import java . util . * ; class solution { public static void main ( String arr [ ] ) { int a = 5 ; int AC = a ; int CE = 2 * a ; double shortestDistace = Math . sqrt ( AC * AC + CE * CE ) ; System . out . println ( shortestDistace ) ; } }