Welcome to C++ programs practice and a solution page. Here you can practice various categories of programs and you can also find the solution of programs with logic. You can find the solution to the most famous problems with logic and full explanation. All programs are successfully compiled and tested in dev C++ in case of any program shows an error let me know so, I can fix the problem. If any c++ program does not have a header file it is a problem for the website, you can add a c++ master header file that is #include.
We provide solutions for India's most reputed websites like Geeks For Geeks and hackerRank in c++. If you find anything wrong with our code or you have a better solution for a particular code please comment below or you can publish your post on our website.
Note: I compile all C++ programs in dev c++, if there is any case program is not working and showing an error please let me know in the comment section. If you are using adblocker, please disable adblocker because some functions of the site may not work correctly.
All C++ Programs List- Table of Content
- Simple Programs
- If / Else Statement Programs
- Loop Programs
- Switch Case programs
- Array Programs
- String Programs
- Function Programs
- Pointer Programs
- Structure Programs
- Class Programs
- File Handling Programs
- Series Programs
- Pattern Programs
- Scheduling Algorithm Programs
- Sorting Programs
- Searching Programs
1. Simple C++ Programs List
- C++ Program To Find Area And Circumference Of Circle
- C++ Program To Print Ascii Value Of Character
- C++ Program To Find Area Of Triangle
- C++ Program to Convert a person's name into Abbreviated
- C++ Program For Calculate A Simple Interest
- Largest of Three Numbers in C Using Nested if Else
- Write a Program to Calculate the Total Salary of an Employee in C++
- C++ Program to Calculate Percentage of Marks of 6 Subjects
- C++ Program For Converting Temperature Celsius Into Fahrenheit
- C++ Program To Display Size Of Different Datatype
- C++ Program To Check Number Is Positive Or Negative
- C++ Program To Calculate Factorial Of A Given Number
- C++ Program To Read Integer (N) And Print First Three Powers (N^1, N^2, N^3)
- C++ Program To Swap Two Numbers Without Using Third Variable
- C++ Program To Find The Address Of Variable
2. If / Else Statement Programs
- C++ Program To Check Whether a Character Is Uppercase, Lowercase Alphabet A Digit Or A Special Symbol
- C++ Program To Find Greatest Among Three Numbers
- C++ Program To Check Number Is Armstrong Or Not Using If/Else Statements
- C++ Program to Check Vowel or Consonant Using if Else
- C++ Program To Check Number Is Positive Or Negative
- C++ Program To Find Number Is Prime Or Not
- C++ Program To Check Whether Character Is Uppercase, Lowercase Alphabet A Digit or A Special Symbol Using If/Else Statements
- C++ Program To Find Quotient And Reminder Of Two Numbers Using If/Else Statements
- C++ Program To Convert A Lowercase Alphabet To Uppercase Alphabet Or Vice-Versa Using If/Else Statements
- C++ Program To Find Max Number Among Given Three Numbers Using If/Else Statements
- C++ Program To Check Year Is Leap Year Or Not Using If/Else Statements
- C++ Program To Find The HCF Or LCM Of a Given Number
- C++ Program To Check Expression Parenthesis Is Valid Or Not Using If/Else Statements
- C++Program To Check Age Between 40 To 60 Using If/Else Statements
- C++ Program To Count Letters, Space, Digits, And Others Using If/Else Statements
- C++Program To Check Date Validation (Valid Or Not) Using If/Else Statements
- C++ Program To Determine Whether The Seller Made Profit or Loss. Also, Determine How Much Profit or Loss He Made
3. Loop Programs
- C++Program To Calculate the Factorial Of A Given Number Using Loop
- C++ Program To Print A Message Multiple Times Using Loop
- C++ Program to Print Table of Any Number Using For Loop
- C++ Program To Print A Reverse Order Of Any Number Using Loop
- C++ Program Print Truth Table Of XY+Z Using Loop
- C++ Program Convert Decimal Number To Binary Number Using Loop
- C++ Program To Print The Fibonacci Series Up to the Given Number Of Terms
- C++ Program to Sort Elements in Lexicographical Order (Dictionary Order) Using For Loop
- C++ Program To Find The GCD And LCM Of Two Numbers
- C++ Program To Find Whether A Number Is Palindrome Or Not
- C++ Program For Denomination of an Amount Using While Loop
4. Switch Case programs
- C++ Program to Convert Celsius to Fahrenheit And Vice Versa
- C++ Program to Display the Grade of a Student Using Switch Case
- C++ Program to Perform Arithmetic Operations Using Switch Case
- C++ Program to Find Area of a Triangle / Square / Circle / Rectangle Using Switch Statement
5. Array Programs
- C++ Program To Print All Value Of An Array
- C++ Program To Print Reverse Order And Print Sum Of Its Element Of An Array
- C++ Program To Check Evenness / Oddness Of An Array
- C++ Program to Count Positive and Negative Numbers Using While Loop
- C++ Program To Check the Primeness Of An Array
- C++ Program To Find Sum of Even Positive / Even Negative / Odd Positive / Odd Negative of An Array
- C++ Program To Check An Array Is Armstrong Or Not
- C++ Program To Sort An Array Using BUBBLE SORT TECHNIQUE
- C++ Program To Sort An Array Using SELECTION SORT TECHNIQUE
- Write A C++ Program To Merge Two Array In a Third Array Unconditionally
- C++ Program To Merge Ascending And Descending Array Into The Third ArrayArray Should be Descending Order
- C Program To Find Maximum Even Number In Row In Matrix
- C++ Program To Reverse An Array In O(n) Complexity
- Union And Intersection of Two-Sorted Arrays in C++
- C++ Program To Find Duplicate Element In Array Time Complexity O(n), Space Complexity O(1)
6. String C++ Programs List
- C++ Program To Convert Lower Case To Upper Case
- C++ Program To Print Reverse A Sentence
- C++ Program To Print A Full String Input By Keyboard
- C++ Program To Check Whether String Is Palindrome Or Not
- C++ Program To Find The Length of Any String
- C Program to Compare Two Strings Without Using Strcmp Function
- C++ Program To Copy One String To Another
- C++ Program To Display Sring From Backward
- C++ Program For Count Words In Given String Even Enter No Of Space Between String
7. Function Programs
- C++ Program To Find Cube Of Any Number Using Functions
- C++ Program To Perform All Arithmetic Operations Using Functions
- C++ Program To Find GCD (Greatest Common Divisor ) Using Functions
- Fibonacci Series in C++ Using Function
- Swapping of Two Numbers in C++ Using Functions
- C++ Program To Swap Two Numbers Without Using Third Variable Using Functions
- C++ Program to Calculate Standard Deviation Using Function
8. Pointer Programs
- C++ Program To Find Number Is Even / Odd Using Pointer
- C++ Program To Read Infinite Numbers and Then Arrange them in Ascending Order Using a Pointer
- Average of Array Using Pointer in C++
- C++ Program For Swapping Two Numbers Using Pointer
- C++ Program To Print Address of Pointer of an Array Using Pointer
9. Structure C++ Programs List
- Write a C++ Program For Employee Details Using Structure
- Adding Two Distance Programs in C++ Using Structure
- Employee Information Using Nested Structure in C++
- C++ Program For Book Details Using Structure
10. C++ Class Programs
11. File Handling Programs
- C++ Program To Read A Line By Line and Write Line By Line Using File
- C++ Program Reading a No. From File and Sum Of No. Line By Line Using File
- Count A Character In C++ Program Using File
- C++ Program To Display The List Of Current Directory / Folder Using File
- Program to Copy Contents of One File to Another in C++
- Merge Two File Into the Third File Using File Handling in C++
12 Series Programs
- C++ Program To Find Sum Of Series 1 + 1 / 2 ^ 2 + 1 / 3 ^ 3 + . . . . . . . . . . . . 1 / n ^ n
- C++ Program To Find Sum Of Series 1 + 2 + 3 + 4 + 5 + 6 . . . . . . . . . . . . . . . . n
- C++ Program To Find Sum Of Series x + x ^ 2 / 2 + x ^ 3 / 3 + x ^ 4 / 4 + . . . . . . . . . x ^ n / n
- C++ Program To Find Sum Of Series 1 / 2 + 4 / 5 + 7 / 8 + . . . . . . . . .n
- C++ Program To Find Sum Of Series 1 + x ^ 1 + x ^ 2 + x ^ 3 + . . . . . . . . . x ^ n
- C++ Program To Find Sum Of Series 1 ^ 2 + 3 ^ 2 + 5 ^ 2 + . . . . . . . . . . . n ^ 2
- C++ Program To Find Sum Of Series 1 + 2 + 4 + 8 + 1 + 32 + . . . . . . . . n
- C++ Program To The Print Given Series 1 -4 7 -10 . . . . . . . . . . . -40
- C++ Program To Print A Given Pattern 12345, 5432, 234, 43, 3
13. Pattern Programs
- C++ Program To Print A Pascal Triangle
- C++ Program To Print A Given STAR Pattern
- C++ Program To Print A Given Reverse STAR Pattern
- C++ Program To Print Half Pyramid Using *
- Write A C++ Program To Print Reverse Half Pyramid Using *
- C++ Program To Print Half Pyramid Using Number
- C++ Program To Print Half Pyramid Using Similar Number In Row
- C++ Program To Print Half Pyramid Using Alphabet
- C++ Program To Print REVERSE Of Half Pyramid Using Alphabet
- C++ Program To Print INDIA Pattern As Given Below
- C++ Program To Print Half Pyramid Alternative Using ( * ) Star And Alphabet
- C++ Program To Print Perfect Square Of Program Using Sleep and Delay Function
- C++ Program To Print Heart Pattern Program Using Star
- C++ Program For Draw A Perfect Christmas Tree
- C++ Program To Print A Given Pattern 12345, 5432, 234, 43, 3
14. Scheduling Algorithm C++ Programs List
- FCFS-FIRST COME FIRST SERVE Scheduling Algorithm In C++ Programs
- Non-Preemptive Priority Scheduling Program in C++
- PRIORITY WITH PREEMPTIVE Scheduling Algorithm In C++ Programs
- Round Robin Scheduling Program in C++ With Gantt Chart
- SJF- SHORTEST JOB FIRST Scheduling Algorithm In C++
15. C++ List Sorting Programs
- Bubble Sort Using Array in C++ Program
- Insertion Sort Using Array in C++ Program
- Heap Sort Using Array in C++ Program
- Quick Sort Using Array in C++ Program
- Selection Sort Using Array in C++ Program
- Radix Sort Using Array in C++ Program
This site is best for practice in any programming language
ReplyDeleteI agree. It can get better than this!!!
ReplyDelete