Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Readme file #87

Closed
wants to merge 7 commits into from
Closed
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@
# Output Files
out
a
PRACTICE/Factorial.cpp
Binary file added Images/code.avif
Binary file not shown.
Binary file added Images/download.jfif
Binary file not shown.
Binary file added Images/github-logo-octocat-.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/hacktober.jfif
Binary file not shown.
Binary file added Images/why-contribute.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 13 additions & 22 deletions PRACTICE/Factorial.cpp
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
// C++ program to find factorial of given number
#include <iostream>
using namespace std;

// function to find factorial of given number
unsigned int factorial(unsigned int n)
{
if (n == 0)
return 1;
return n * factorial(n - 1);
}

// Driver code
int main()
{
int num = 5;
cout << "Factorial of "
<< num << " is " << factorial(num) << endl;
return 0;
}

// This code is contributed by Shivi_Aggarwal
#include <iostream>
using namespace std;
int main()
{
int i,fact=1,number;
cout<<"Enter any Number: ";
cin>>number;
for(i=1;i<=number;i++){
fact=fact*i;
}
cout<<"Factorial of " <<number<<" is: "<<fact<<endl;
return 0;
}
30 changes: 24 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
# Hello World

Contains most of my work in _Competitive Programming_
# HACKTOBERFEST22
This repository is for everyone who wants to participate in Hacktoberfest 2022.
<br>
<h1>Hacktober Fest 2022 For Everyone!👋👋</h1>
<br>
<img src = "https://github.com/mridulgoel03/hello-world/blob/main/Images/download.jfif" alt= "Its time to contribute!!" height = "100%" width = "100%">
<h1>🎖️🎖️Rewards ::🎖️🎖️</h1>
<h6>You can get awesome goodies like T-Shirt and some stickers for FREE!!!🤩🤩</h6>

## Usage
<h6>Use this project to make your first contribution to an open source project on GitHub!!</h6>
<br>
<h1>What is Hacktoberfest?</h1>
<h6>Hacktoberfest is a month-long celebration of open-source software by DigitalOcean that encourages participation in giving back to the open-source community. Developers get involved by completing pull requests, participating in events, and donating to open source projects.</h6>
<br>
<img src="https://github.com/powerfist01/hello-world/blob/main/Images/github-logo-octocat-.gif" style="display:flex; justify-content:center;">
<br>
<h1>Why should you contribute for Hacktoberfest??🤔🤔</h1>
<h6>It encourages developers and also beginners to contribute to open source projects and practice programming by participating in solving problems across projects.</h6>
<br>
<img src="https://github.com/powerfist01/hello-world/blob/main/Images/why-contribute.gif">
<br>

Clone the repository and have fun with some of the C++ problems and their solutions.
<h6>If you liked working on this project, please share this project as much as you can and star this project to help as many people in opensource as you can.</h6>


## Contributing
If found any issue, please open an issue first to discuss what you would like to change.
<h6>Thanks for contributing. It's an amazing experience to collaborate with you all!</h6>
<br>
<img src = "https://github.com/mridulgoel03/hello-world/blob/Readme-file/Images/code.avif" >

## Author

[Sujeet Kumar Singh](https://singhsujeet0.web.app)