66 views
Problem: I am new in programming and my syntax is not good, can anyone provide the right query to find? Which of the following will format 12.78 to display as 12.8%? a. System.out.printf("%2.1d%", 12.78); b. System.out.printf("%.2f%%", 12.78); c. System.out.printf("%1.2d%", 12.78); d. System.out.printf("%.1f%%", 12.78);
asked
Feb 17, 2020
maddi86
5.4k points