Welcome to our Hacktoberfest repository! This repository is specifically designed for beginners looking to contribute to open source during Hacktoberfest. We've curated a list of 20 very simple coding questions suitable for newcomers. Feel free to explore, solve, and contribute your solutions!
-
Fork this Repository: Click the "Fork" button in the upper right of this repository to create your own copy.
-
Clone your Fork: Clone the repository to your local machine using the following command:
git clone https://github.com/sceptix-club/hacktoberfest-beginner-questions.git
-
Solve a Question: Pick any question from readme, solve it, and place your solution in solutions folder.
-
Add your Solution: Add your solution file. Please name your file descriptively, e.g.,
question1_solution.py
. -
Commit Changes: Commit your changes with a meaningful commit message.
git commit -m "Add solution for question 1 in Python"
-
Push Changes: Push your changes to your forked repository.
git push origin main
-
Create a Pull Request: Go back to the original repository on GitHub and click the "New Pull Request" button. Provide a detailed description of your changes and submit the pull request.
- Write a program to find the factorial of a number.
- Write a program to check if a number is prime or not.
- Write a program to swap the values of two variables.
- Write a program to calculate the sum of natural numbers up to a given number.
- Write a program to find the largest element in an array.
- Write a program to reverse a string.
- Write a program to check if a string is a palindrome.
- Write a program to find the length of a string.
- Write a program to sort an array of integers in ascending order.
- Write a program to calculate the area of a circle.
- Write a program to find the second largest element in an array.
- Write a program to check if a year is a leap year.
- Write a program to print the Fibonacci series up to a given number.
- Write a program to calculate the sum of digits of a number.
- Write a program to find the maximum of three numbers.
- Write a program to calculate the average of elements in an array.
- Write a program to find the GCD (Greatest Common Divisor) of two numbers.
- Write a program to find the LCM (Least Common Multiple) of two numbers.
- Write a program to check if a number is even or odd.
- Write a program to find the area of a rectangle.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project, you agree to abide by its terms.
Happy coding and happy Hacktoberfest!