FwParzy / Math-Is-Fun

Comp Sci 2 Semester Project
2 stars 2 forks source link

Division issue #19

Open estefqni opened 1 year ago

estefqni commented 1 year ago

System.out.print("Enter your answer rounding to the tenths place and in the format (#.#): "); double answer = scanner.nextDouble(); int num1 = Integer.parseInt(line.split("\s+")[0]); int num2 = Integer.parseInt(line.split("\s+")[2]); double correctAnswer = Math.round((double)num1 / num2* 10.0)/ 10.0;

on line 253 thru 257