Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Retorna true si es any de traspàs
- bool es_any_de_traspas(int any) {
- if (any%4 == 0 && any%100 != 0) return true;
- else if (any%100 == 0 && (any/100)%4 == 0) return true;
- else return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement