Sample Programs in Every Language

Published on 01 November 2018 (Updated: 27 April 2022)

Welcome to Sample Programs in Every Language, a collection of code snippets in as many languages as possible. Thanks for taking an interest in our collection which currently contains hundreds of articles written by 42 authors.

If you'd like to contribute to this growing collection, check out our contributing document for more information. In addition, you can explore our documentation which is organized by project and by language. If you don't find what you're looking for, check out our list of related open-source projects. Finally, if code isn't your thing but you'd still like to help, there are plenty of other ways to support the project.