Posts by Kawhan Laurindo de Lima • 1 point
1 post
-
-1
votes1
answer39
viewsA: Doubt comma, decimal places Java
You can do the following by putting %.2f --> that "2" is the number of decimal places you select in the print: System.out.printf("A = %.2f%n",average);
javaanswered Kawhan Laurindo de Lima 1