Skip to content

sceptix-club/hacktoberfest-beginner-questions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Hacktoberfest Beginner Coding Questions Repository

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!

How to Contribute

  1. Fork this Repository: Click the "Fork" button in the upper right of this repository to create your own copy.

  2. 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
    
  3. Solve a Question: Pick any question from readme, solve it, and place your solution in solutions folder.

  4. Add your Solution: Add your solution file. Please name your file descriptively, e.g., question1_solution.py.

  5. Commit Changes: Commit your changes with a meaningful commit message.

    git commit -m "Add solution for question 1 in Python"
    
  6. Push Changes: Push your changes to your forked repository.

    git push origin main
    
  7. 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.

Questions

  1. Write a program to find the factorial of a number.
  2. Write a program to check if a number is prime or not.
  3. Write a program to swap the values of two variables.
  4. Write a program to calculate the sum of natural numbers up to a given number.
  5. Write a program to find the largest element in an array.
  6. Write a program to reverse a string.
  7. Write a program to check if a string is a palindrome.
  8. Write a program to find the length of a string.
  9. Write a program to sort an array of integers in ascending order.
  10. Write a program to calculate the area of a circle.
  11. Write a program to find the second largest element in an array.
  12. Write a program to check if a year is a leap year.
  13. Write a program to print the Fibonacci series up to a given number.
  14. Write a program to calculate the sum of digits of a number.
  15. Write a program to find the maximum of three numbers.
  16. Write a program to calculate the average of elements in an array.
  17. Write a program to find the GCD (Greatest Common Divisor) of two numbers.
  18. Write a program to find the LCM (Least Common Multiple) of two numbers.
  19. Write a program to check if a number is even or odd.
  20. Write a program to find the area of a rectangle.

Code of Conduct

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!


Releases

No releases published

Packages

No packages published

Languages