Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class aantaldageninfebruari {
- /**
- * @param args
- */
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- int teller = 0;
- for (int j = 0; j < 2013; j++) {
- Boolean z = (j % 100 == 0) ? ((j % 400 == 0) ? (true) : (false))
- : ((j % 4 == 0) ? (true) : (false));
- if (z == true) {
- teller = teller + 1;
- }
- }
- System.out.println(teller);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement