This repo contains a few basic programs in languages such as Java, Python, C# etc.
basic-programs/
├──<Language Name>/
│ ├──<Descriptive name>.example
If there is no folder for the language in the repository, you are more than welcome to add another.
If you are adding a program that utilises a specific concept and/or theory, please add it to its own sub-folder.
Please ensure that the code in the PR is formatted properly. You can use online tools for formatting like:
- Java - https://codebeautify.org/javaviewer
- C++ - https://codebeautify.org/cpp-formatter-beautifier
- C - https://codebeautify.org/c-formatter-beautifier
- Javascript - https://codebeautify.org/jsviewer
Also ensure that the filename is either snake_case or PascalCase.
For a concept:
basic-programs/
├──javascript/
│ ├──recursion/
| | ├──factorial.js
For a simple program:
basic-programs/
├──ruby/
│ ├──reading_input.rb
When making a change, please check open Pull Requests to make sure that what you're working on is not already done.