CJCoding With Joseph
15free / daySign inCreate account

Scientific Notation

Use System.out.printf with the %e conversion to print the double 12345.678 in scientific notation with the default 6 digits after the decimal point, followed by %n. The exact output is what is shown in Expected Output.

Java rounds to 6 decimals and uses a two-digit signed exponent.

Expected Output:

1.234568e+04

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
Printing
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.