The statement System.out.printf("%3.1f", 1234.56) outputs ___________.
a. 123.4
b. 123.5
c. 1234.5
d. 1234.56
e. 1234.6
e .1 specifies one digit after the decimal point. The rest is rounded up. So 1234.56 is displayed 1234.6.
Computer Science & Information Technology
You might also like to view...
What type of break allows you to decide where one column ends and another column begins?
A) Section B) Continuous C) Column D) Balanced
Computer Science & Information Technology
Which of these is NOT one of the two basic types of cryptography?
a. Asymmetric b. Symmetric c. Forward d. None of the above
Computer Science & Information Technology