Created
June 10, 2011 09:10
-
-
Save johncrisostomo/1018527 to your computer and use it in GitHub Desktop.
lab lecture
This file contains hidden or 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
import java.io.*; | |
public class Age { | |
public static void main(String args[]) throws IOException { | |
int age; | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
System.out.print("Enter your age : "); | |
age = Integer.parseInt(br.readLine()); | |
System.out.println("Your age is " + age); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment