Advertisement
Guest User

Untitled

a guest
Oct 19th, 2020
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import java.util.Scanner;
  2. class Main {
  3. public static void main(String[] args) {
  4. Scanner scanner = new Scanner(System.in);
  5. int ourNumber = scanner.nextInt();
  6. int squares=0;
  7. do {
  8. squares++;
  9. }while (squares<=ourNumber);
  10. if (squares%2!=1 && squares%2!=0)
  11. {System.out.println(squares);}
  12.  
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement