Created
November 10, 2014 16:28
-
-
Save samueltcsantos/14a52f985fc137fdecbd to your computer and use it in GitHub Desktop.
Converter metros para centímetros em Javascript/NodeJS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Author : Samuel T. C. Santos | |
* version : 10.11.2014 | |
* | |
* Javascript e NodeJS nao tem o proposito de ler dados da entrada | |
* em linha de comando, por isso, vamos apenas declarar | |
* as variaveis e inicializar-las com um valor. | |
*/ | |
var metros = 0.88, | |
centimetros =0; | |
centimetros = metros * 100; | |
console.log(centimetros + ' cm'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gud code