The following program reads an image's dimensions (width and height) and the dimensions we want to resize it (newWidth and newHeight) from standard input. These data are converted to Float.
Then it calculates the required resizing ratio for each dimension, that is, factorX and factorY (both Float) for the horizontal and the vertical dimension respectively and prints them.
Your task is to fill in the missing code so that the program prints the correct factors.