Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Task14 {
  4.  
  5. public static void main(String[] args) {
  6. Scanner sc = new Scanner(System.in);
  7. int n = sc.nextInt();
  8. boolean checkN = (n >= 10 && n<= 200);
  9. if (!checkN) {
  10. System.out.println("Wrong Number");
  11. }else {
  12. for(int i = n -1;i>=0;i--) {
  13. if(i % 7 == 0) {
  14. System.out.println(i);
  15. }
  16. }
  17. }
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement