Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/contribution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Contribution
- Fork this [repo](https://github.com/swaaz/basicprograms)
- Clone it using command :
<pre> $ git clone paste_the_copied_url.</pre>
- Open folder "C/Python" :
<pre>$ cd filder_name</pre>
eg:cd C
- Create new branch :
<pre> $ git branch new_branch_name</pre>
eg:git branch swaaz
- Checkout to new branch from master branch :
<pre>$ git checkout new_branch_name</pre>
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
<pre> $ mkdir program-number </pre>
eg:mkdir program-35
- Change directory to the new created folder
<pre> $ cd folder_name </pre>
- 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 :
<pre>$ git add -A</pre>
- Commit file :
<pre>$ git commit -m "comment"</pre>
eg-git commit -m "program added"
- Push the file :
<pre>$ git push origin -u 'branch_name'</pre>
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/)

2 changes: 1 addition & 1 deletion C/program-37/program.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Program to find the fibonacci sequnce
Program to find the fibonacci sequnce using recursion
*/

#include<stdio.h>
Expand Down
3 changes: 3 additions & 0 deletions C/sample.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* Write the complete question between these tags*/

// start writng code from here
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<html>
<head>
<title>Basic Programs</title>
<h1>BASIC PROGRAMS</h1>
</head>
</html>
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Basic programs
## This repo contains basics programs in c programming language and python.
## 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)