diff --git a/readme.md b/readme.md index 17b64228..a635edd2 100644 --- a/readme.md +++ b/readme.md @@ -1,12 +1,118 @@ -

Basic Program

- +

Basic Program

-## This repo contains basics programs in all languages. -## Contribution -If you want to contribute to this repo then [click here](https://github.com/swaaz/basicprograms/blob/swaaz/.github/ISSUE_TEMPLATE/contribution.md) +## This repo is an awesome collection of basic programs in different programming languages⚡ +
+ + + + + + + +

+ +## ⚠️Points to note before you start contributing +- Check whether the program you are going to add already exists in the repo or not. Make sure you're not repeting any program. +- Please go through [How to contribute](#contribute) and do accordingly to make a smooth contribution. +

+ +## Folder structure: +``` +. +├── C++ +│ ├── Program-1 +│ │ ├── program.cpp +│ │ ├── readme.md +│ . . +│ . . +│ +├── C +│ ├── Program-1 +│ │ ├── program.c +│ │ ├── readme.md +│ . . +│ . . +│ +├── Java +│ ├── Program-1 +│ │ ├── program.java +│ │ ├── readme.md +│ . . +│ . . +│ +├── Javascript +│ ├── Program-1 +│ │ ├── program.js +│ │ ├── readme.md +│ . . +│ . . +│ +├── Python +│ ├── Program-1 +│ │ ├── program.py +│ │ ├── readme.md +│ . . +│ . . +│ +``` +

+ +# How to contribute + + +- Fork this [repo](https://github.com/swaaz/basicprograms) + +- Clone it using command : +
 $ git clone paste_the_copied_url.
+ +- Open folder "basicprograms" : +
$ cd basicprograms
+ +- Open folder "C/Python" : +
$ cd folder_name
+ eg: cd C + +- Create new branch : +
 $ git branch new_branch_name
+ eg: git branch hactoberfest + +- Checkout to new branch from master branch : +
$ git checkout new_branch_name
+ eg: git checkout hactoberfest + + - Create a new folder +
 $ mkdir program-number 
+ eg: mkdir program-35 + + - Change directory to the new created folder +
 $ cd folder_name 
+ + - Create a file *program.c* + + - Write the code inside program.c file + ### NOTE: Before writng code refer [*sample*](https://github.com/swaaz/basicprograms/blob/swaaz/C/sample.c) file and write the code in the same format as given + + - Add file : +
$ git add -A
+ +- Commit file : +
$ git commit -m "comment"
+ eg: git commit -m "program added" + +- Push the file : +
$ git push origin -u 'branch_name'
+ eg: git push origin -u hactoberfest + +- The given link should be copied and pasted in web browser or go to your repo in web browser + +- Create a pull request + +- tag @swaaz under review section

+ +### Tada you just made a contribution ✨. Pat your back 👏

+ +### If you have never made a PR before 😕, no worries, follow these steps to get going [👉click me](https://gitme.js.org/) +