Skip to content

Cubicl3s/Cpp-prg-lang-task.1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 

Repository files navigation

πŸš€ C++ Programming Practice Problems for Beginners

Welcome to the C++ Programming Practice Set!
This list contains 25 beginner-level problems focused on mastering basic C++ syntax and logic-building.


πŸ“š Problem Set

  1. Print "Hello, C++ World!" to the console.
  2. Declare and print values of int, double, and char using cin and cout.
  3. Take two numbers as input and swap them without using a third variable.
  4. Take an input and determine if it's positive, negative, or zero.
  5. Check if a number is divisible by both 3 and 5.
  6. Find the sum of all even numbers up to N.
  7. Check if a year is a leap year.
  8. Generate multiplication table using for loop.
  9. Display all odd numbers between 1 to 50.
  10. Take a number and determine if it is prime or not using a function.
  11. Calculate factorial using recursion.
  12. Count and print all digits of a number.
  13. Find the sum of the first N natural numbers using loop.
  14. Print Fibonacci sequence using recursion.
  15. Take a string input and print its length using string class.
  16. Print a square star pattern.
  17. Print an inverted triangle pattern.
  18. Check if a character is uppercase or lowercase.
  19. Use switch to create a basic calculator.
  20. Write a program using while loop to reverse a number.
  21. Create a simple menu-driven program using do-while loop.
  22. Compare two numbers using the ternary operator.
  23. Demonstrate use of break and continue in a loop.
  24. Print all prime numbers between two given numbers.
  25. Take an array of 10 integers and print their sum.

✨ Save this list, push your solutions, and build a solid understanding of C++ step by step.

Keep coding and improving! πŸ’‘

About

"Day : Tuesday | Date : 24 June, 2025"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published