String formatting

  • 12
  • Locked
Correct the getFormattedString method so that it returns a string with format specifiers. Don't use \n to convert carriage returns. The output should be: 20 / 7 = 2.86 Exp = 3.33e+00
You can't complete this task, because you're not signed in.
Comments (3)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Jurij Thmsn
Level 25 , Flensburg, Germany
23 June, 13:15
watch out for the space after the first number
Adrian
Level 26 , Spanish Town, Jamaica
2 March, 20:11
use %n and not \n is what they mean. the output should be two lines.
Jason
Level 26 , Rancho Cucamonga, United States
13 January 2020, 22:11
the output needs to be... 20 / 7 = 2.86 Exp = 3.33e+00 not the single line answer the task is asking for.