Leap year A collection of code snippets in many languages to determine if a given year is a leap year. Contributors: Please see the CONTRIBUTING file for guidelines. Languages Applesoft BASIC Assembly Bash C++ calculang C64BASIC COBOL ColdFusion FORTRAN Go Java JavaScript Objective-C OCaml PHP Python Rust Scratch SQL Swift TI-BASIC TypeScript