import java.util.Scanner;
public class Teclado {
public static void main (String [] args){
Scanner scn = new Scanner(System.in);
System.out.print("Ingresa tu edad: ");
int edad = scn.nextInt();
System.out.println("Gracias!! tu edad es: "+edad);
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.