This is a collection of codes that uses switch statement in all programming languages that have switch.
We used the week days as example to show the switch usage. ⏲️
The main porpuse of this repo is showing how is the switch statement be used.
This repo has been created by AbdelrahmanDwedar & Khayal_Dev
1- All the added languages are programming languages, none of them is markup language or else (We counted scripting languages as well) 2- Simple and strightforward codes, to be understandable and readable for any developer - using that language. 3- All have the same code idea. 4- Simple example to make ti easier to understand.
Here is a list of all added languages:-
D
G
K
P
- If there's a language - that hasn't been added and - you want to add it, you can do so; by making a pull request
- Fork this repo.
- Add the file with the code (it must be the same code idea).
- Commit with the following
Add [langauge]
(and if it was needed to be explained feel free to add that explaination through comments or commit details). - Pull request the changes.
- If there's any error or problem with the current codes don't pull request the solution you only can report the issue to and it'll be solved as soon as possible.