From linuxmanr4, 5 Years ago, written in Ruby.
This paste is a reply to pares e impares from audiosaurius
- view diff
Embed
Download Paste or View Raw

  1. # El mismo objetivo del programa anterior con Ruby.
  2.  
  3. puts 'Ingrese un número (tiene que ser un entero):'
  4. a = gets
  5.  
  6. if (a.to_i % 2) == 0
  7.         puts "El número es par."
  8. else
  9.         puts "El número es impar"
  10. end

Replies to Re: pares e impares rss

Title Name Language When
Re: Re: pares e impares Smelly Pheasant powershell 1 Month ago.
Re: Re: pares e impares Silly Gibbon lisp 2 Months ago.
Re: Re: pares e impares Ungracious Pintail scala 8 Months ago.
Re: Re: pares e impares Burly Leopard spark 8 Months ago.
Re: Re: pares e impares Botched Hedgehog prolog 11 Months ago.
Re: Re: pares e impares Whipped Crow vhdl 1 Year ago.
Re: Re: pares e impares Sloppy Parrot ruby 1 Year ago.
Re: Re: pares e impares Whipped Treeshrew ada 1 Year ago.
Re: Re: pares e impares Cute Bongo powershell 1 Year ago.
Re: Re: pares e impares Blush Mockingbird asm 1 Year ago.
Re: Re: pares e impares Chocolate Zebra prolog 2 Years ago.
Re: Re: pares e impares Little Ostrich powershell 2 Years ago.
Re: Re: pares e impares Bulky Bushbaby ruby 2 Years ago.
Re: Re: pares e impares Chunky Kangaroo visualprolog 2 Years ago.
Re: Re: pares e impares Beefy Peccary powerbuilder 3 Years ago.