← Back to Printing
Question 285
Scientific Notation
Scientific Notation
UseSystem.out.printfwith the%econversion 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
Sign in to use hintsTopics:
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.