Created
December 20, 2013 21:27
-
-
Save alcidesfp/8061824 to your computer and use it in GitHub Desktop.
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
//-*- coding:utf-8; -*- | |
def edad | |
def nombre | |
def brin = new BufferedReader(new InputStreamReader(System.in)) | |
def num | |
print("Hola, ¿Cuál es tu nombre? ") | |
nombre = new String(brin.readLine()) | |
print("¿En qué año naciste? ") | |
edad = new Integer(brin.readLine()) | |
num = 2013 - edad.intValue(); | |
println("Hola, $nombre") | |
println("En el año 2013 tendrás $num años") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment