Skip to content

About

A collection of C++ programs and practice exercises covering programming fundamentals, control structures, arrays, loops, and mathematical problems.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

C++ Programming Fundamentals

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.

📚 Topics Covered

The repository includes programs based on the following concepts:

1. Control Statements

  • If and Else Statements
  • Nested If Conditions
  • Switch Case

2. Loops

  • For Loop
  • While Loop
  • Do-While Loop
  • Nested Loops

3. Arrays

  • Array Declaration and Initialization
  • Array Traversal
  • Basic Array Operations

4. Mathematical Problems

  • Armstrong Number
  • Prime Number
  • Factors of a Number
  • Basic Mathematical Operations

5. Basic Programming Problems

  • Swapping Numbers
  • Functions
  • Conditional Logic
  • Practical Problem Solving

🛠️ Technologies & Tools

  • Programming Language: C++
  • Code Editor: Visual Studio Code
  • Version Control: Git & GitHub

🚀 Getting Started

To run these programs on your local machine:

1. Clone the repository

git clone https://github.com/varuna-code7/cpp-basics.git

2. Navigate to the project directory

cd cpp-basics

3. Compile a C++ program

For example:

g++ array.cpp -o array

4. Run the program

On Windows:

.\array.exe

🎯 Repository Goals

  • 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.

👩‍💻 Author:muthu varuna

⭐ Feel free to explore the programs and share suggestions!

About

A collection of C++ programs and practice exercises covering programming fundamentals, control structures, arrays, loops, and mathematical problems.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages