Skip to content

Instantly share code, notes, and snippets.

@samueltcsantos
Created November 10, 2014 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueltcsantos/14a52f985fc137fdecbd to your computer and use it in GitHub Desktop.
Save samueltcsantos/14a52f985fc137fdecbd to your computer and use it in GitHub Desktop.
Converter metros para centímetros em Javascript/NodeJS.
/**
* 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');
@ProgrammerEspiffy
Copy link

gud code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment