Challenge for maths lovers | Sololearn: Learn to code for FREE!

+10

Challenge for maths lovers

Here is a very simple task for you show Scientific notation of any number like 12.34 in Scientific notation its 1.2 10^1 1456.342 in Scientific notation its 1.456 10 ^3 Here is my try in Java https://code.sololearn.com/cS2i1Hn4Bd9B/?ref=app You can use any language 😊👍

1/31/2018 3:11:02 PM

Waseem Siddiqi

9 Answers

New Answer

+5

scientific notation of 12.34 would be 1.23*10^1. So you all should correct your code .

+20

JavaScript: var n = prompt("").split(".")[0]; alert("0." + n + " 10^" + n.length);

+14

https://code.sololearn.com/cUkc29Enx0u3/?ref=app

+7

https://code.sololearn.com/c3L641MN2y57/?ref=app

+7

My solution https://code.sololearn.com/cQh1TV0M4O9f/?ref=app

+6

Updated Solution here https://code.sololearn.com/c20izZO7rr1m/?ref=app

+6

JavaScript: console.log(parseFloat(prompt('')).toExponential());

+5

thanks therk fixed

+1

https://code.sololearn.com/cWfQrLtmgEs4/?ref=app