Welcome to my C++ Basics repository!
This repository contains my C++ practice programs and coding exercises as I strengthen my programming fundamentals and problem-solving skills.
It serves as a collection of hands-on implementations covering basic programming concepts, control structures, arrays, and mathematical problems.
The repository includes programs based on the following concepts:
- If and Else Statements
- Nested If Conditions
- Switch Case
- For Loop
- While Loop
- Do-While Loop
- Nested Loops
- Array Declaration and Initialization
- Array Traversal
- Basic Array Operations
- Armstrong Number
- Prime Number
- Factors of a Number
- Basic Mathematical Operations
- Swapping Numbers
- Functions
- Conditional Logic
- Practical Problem Solving
- Programming Language: C++
- Code Editor: Visual Studio Code
- Version Control: Git & GitHub
To run these programs on your local machine:
1. Clone the repository
git clone https://github.com/varuna-code7/cpp-basics.git2. Navigate to the project directory
cd cpp-basics3. Compile a C++ program
For example:
g++ array.cpp -o array4. Run the program
On Windows:
.\array.exe- Strengthen C++ programming fundamentals.
- Improve logical thinking and problem-solving skills.
- Practise implementing programming concepts.
- Build a strong foundation for Data Structures and Algorithms.
- Maintain consistent coding practice.
- GitHub: @varuna-code7
⭐ Feel free to explore the programs and share suggestions!