I'm trying to compute the simplest form of the square root of an integer. My Java knowledge is rather limited, but I know many of the basics and such. I can't figure out how to find a simplest form square root given the input of a number to take the square root of.
Ex: User inputs 150, and I take the square root of that in simplest form (5√6).
Quick note: I haven't technically learned arrays and array lists yet so I can't use those for the code.