Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.plaf.synth.SynthDesktopIconUI;
- import java.util.HashMap;
- import java.util.Map;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- String x = input.nextLine();
- int count = 0;
- int y = Integer.parseInt(x);
- while (y!=0){
- if ((x.length() == 3)&&(y % 4 == 0)){
- count++;
- }
- x = input.nextLine();
- y = Integer.parseInt(x);
- }
- System.out.println(count);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement