Prueba de syntax higlighter

Listing 1

 1: def factorial(n)
 2:  if n > 1
 3:   # casos mayor que 1, se usa la formula recursiva
 4:   # n! = n*(n-1)!
 5:   n * factorial(n-1)
 6:  else
 7:   # casos 0 y 1, devuelve 1
 8:   1
 9:  end
10: end
  • Consola

Output

ls -l *.zip
 
temario_ruby.txt · Última modificación: 2010/06/11 08:46 por Leonardo Yamasaki Maza
 
 
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki