Advertisement
Yaroslavovich

Untitled

Nov 29th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. package com.company;
  2.         import java.util.Random;
  3.         import java.util.Scanner;
  4.  
  5. public class Main {
  6.     static int Sleep(int n){
  7.         int[]Zzz = new int[n];
  8.            for(int i = 0;i<Zzz.length;i++){
  9.                Scanner in = new Scanner(System.in);
  10.                i=in.nextInt();
  11.                if(i%2!=0&&i<11){
  12.                    System.out.println(i);
  13.                }
  14.            }
  15. return Sleep(n);
  16.         }
  17.  
  18.  
  19.  
  20.     public static void main(String[] args) {
  21. Scanner in = new Scanner(System.in)  ;
  22. int f = in.nextInt();
  23. Sleep(f);
  24.  
  25.  
  26.        }
  27.  
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement