Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Task14 {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int n = sc.nextInt();
- boolean checkN = (n >= 10 && n<= 200);
- if (!checkN) {
- System.out.println("Wrong Number");
- }else {
- for(int i = n -1;i>=0;i--) {
- if(i % 7 == 0) {
- System.out.println(i);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement