diff --git a/.github/ISSUE_TEMPLATE/contribution.md b/.github/ISSUE_TEMPLATE/contribution.md new file mode 100644 index 00000000..fd6a3834 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/contribution.md @@ -0,0 +1,37 @@ +# Contribution +- Fork this [repo](https://github.com/swaaz/basicprograms) +- Clone it using command : +
 $ git clone paste_the_copied_url.
+- Open folder "C/Python" : +
$ cd filder_name
+ eg:cd C +- Create new branch : +
 $ git branch new_branch_name
+ eg:git branch swaaz +- Checkout to new branch from master branch : +
$ git checkout new_branch_name
+ eg-git checkout swaaz + ## Check whether the program which you want is exist in the _readme_ file + ### If it's existing then don't waste your time by adding it again and think of adding some other program + ### If it's not existing then + - 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 swaaz +- The given link should be copied and pasted in web browser or go to your repo in web browser +- Create a pull request +## If you are contributing for the first time,then : +[click here](https://gitme.js.org/) + diff --git a/C/program-37/program.c b/C/program-37/program.c index 4a63c87c..0f2f59a1 100644 --- a/C/program-37/program.c +++ b/C/program-37/program.c @@ -1,5 +1,5 @@ /* -Program to find the fibonacci sequnce +Program to find the fibonacci sequnce using recursion */ #include diff --git a/C/sample.c b/C/sample.c new file mode 100644 index 00000000..9856bb69 --- /dev/null +++ b/C/sample.c @@ -0,0 +1,3 @@ +/* Write the complete question between these tags*/ + +// start writng code from here diff --git a/index.html b/index.html new file mode 100644 index 00000000..19b9c3d4 --- /dev/null +++ b/index.html @@ -0,0 +1,6 @@ + + + Basic Programs +

BASIC PROGRAMS

+ + \ No newline at end of file diff --git a/readme.md b/readme.md index 39f1a208..b41b556d 100644 --- a/readme.md +++ b/readme.md @@ -1,2 +1,4 @@ # Basic programs -## This repo contains basics programs in c programming language and python. \ No newline at end of file +## This repo contains basics programs in c programming language and python. +## Contribution +If you want to contribute to this repo then [click here](https://github.com/swaaz/basicprograms/blob/swaaz/.github/ISSUE_TEMPLATE/contribution.md)