Created
October 20, 2017 16:29
-
-
Save steve0hh/8823cb6bdf2f05a0e33980f604351ec4 to your computer and use it in GitHub Desktop.
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.util.*; | |
import java.io.*; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); | |
while(in.hasNext()){ | |
int input = in.nextInt(); | |
if(input == 42){ break;} | |
System.out.println(input); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment