+ 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 😊👍

31st Jan 2018, 3:11 PM
Waseem Siddiqi
Waseem Siddiqi - avatar
9 Réponses
+ 5
scientific notation of 12.34 would be 1.23*10^1. So you all should correct your code .
2nd Feb 2018, 12:01 AM
therk
therk - avatar
+ 20
JavaScript: var n = prompt("").split(".")[0]; alert("0." + n + " 10^" + n.length);
31st Jan 2018, 5:47 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
31st Jan 2018, 6:32 PM
LukArToDo
LukArToDo - avatar
+ 7
https://code.sololearn.com/c3L641MN2y57/?ref=app
1st Feb 2018, 1:15 PM
abdulazizumarovich
abdulazizumarovich - avatar
+ 6
JavaScript: console.log(parseFloat(prompt('')).toExponential());
6th Feb 2018, 7:04 PM
The Coding Sloth
The Coding Sloth - avatar
+ 5
thanks therk fixed
2nd Feb 2018, 2:54 AM
Waseem Siddiqi
Waseem Siddiqi - avatar