This is my first GitHub repository 🎉
It contains simple and easy C++ programs that cover basic concepts like:
- Input and Output
- Loops
- Arrays
- Conditional Statements
- Functions
- 01_HelloWorld.cpp — Hello World example
- 02_EvenOdd.cpp — Check if a number is even or odd
- 03_LargestNumber.cpp — Find largest of three numbers
- 04_Factorial.cpp — Factorial using loop
- 05_ArraySum.cpp — Sum of array elements
- 06_SquareFunction.cpp — Calculate square using function
Compile with g++:
g++ 01_HelloWorld.cpp -o hello
./hello
g++ 02_EvenOdd.cpp -o evenodd
./evenodd
g++ 03_LargestNumber.cpp -o largest
./largest
g++ 04_Factorial.cpp -o factorial
./factorial
g++ 05_ArraySum.cpp -o arraysum
./arraysum
g++ 06_SquareFunction.cpp -o square
./square