Homework Clinic

Science Clinic => Computer Science => Topic started by: littleanan on May 6, 2020

Title: The statement System.out.printf("%5d", 123456) outputs ________.
Post by: littleanan on May 6, 2020

Question 1

The statement System.out.printf("%3.1e", 1234.56) outputs ________.
◦ 0.123456e+04
◦ 1.2e+03
◦ 0.123e+04
◦ 1.23+03
◦ 0.1e+04

Question 2

The statement System.out.printf("%5d", 123456) outputs ________.
◦ 12345
◦ 23456
◦ 12345.6
◦ 123456
Title: The statement System.out.printf("%5d", 123456) outputs ________.
Post by: KKcool on May 6, 2020

Answer 1

1.2e+03

Answer 2

123456
Title: Re: The statement System.out.printf(
Post by: Taylor Baker on Oct 14, 2022
thank you