Advertisement
bkit4s0

[TEST]

Apr 1st, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. import java.util.*;
  2. class type {
  3.     public static void main(String args[]) {
  4.         Scanner scanner = new Scanner(System.in);
  5.         int a = scanner.nextInt();
  6.         while(a!=42) {
  7.             System.out.println(a);
  8.             a = scanner.nextInt();
  9.         }
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement