Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- class type {
- public static void main(String args[]) {
- Scanner scanner = new Scanner(System.in);
- int a = scanner.nextInt();
- while(a!=42) {
- System.out.println(a);
- a = scanner.nextInt();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement