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
- C++ Program To Find Greater No. Among given Three Number
- C++ Program To Find The Gross Salary Of An Employee
- C++ Program For Calculate Percentage Of 5 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 Find Character Is Vowel Or Not
- 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 Find Character Is Vowel Or Not Using If/Else Statements
- C++ Program To Check Whether Number Is Even Or Odd Using If/Else Statements
- C++ Program To Check Number Is Prime Or Not Using If/Else Statements
- 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 Two Numbers Using If/Else Statements
- 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 A Table Of Given Numbers Using 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 For Temperature Conversion Celcius To Fahrenheit And Vice Versa Using Switch Case
- C++ Program To Find A Grade Of Given Numbers Using Switch Case
- C++ Program To Perform All Arithmetic Operations Ie:-(a+b,a-b,a*b,a/b,a%b) Using Switch Case
- C++ To Program Calculate Area Of Circle Rectangle And Triangle Using Switch Case
- C++ Program For Finding A Grade Using Switch Case
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 Check Positive / Negative Number Of An Array
- C++ Program To Check the Primeness Of An Array
- C++ Program 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
- C++ Program To Merge Two Array Into Third Array Unconditionally
- C++ Program To Merge One Accending And Another One Is Descending Array In Third Array Should be Descending Order
- C Program To Find Row In An Array That Includes The Greatest Amount Of Even Number
- C++ Program To Reverse An Array In O(n);
- C++ Program To Find The Union And Intersection Of Two Sorted Array In Increasing Order.
- 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 String
- 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 Using Function In C++
- Swap Two Numbers Using a Function in C++
- 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
- C++ Program For Store Employee Information and Display 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
- Copy One File To Another Using File Handling 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 *
- C++ Program To Print Reverse Half Pyramid Using *
- C++ Program To Print Flip Pattern Of Half Pyramid Using *
- C++ Program To Print Flip Pattern Of Reverse Half Pyramid Using *
- C++ Program To Print Diamond Pattern 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
- PRIORITY Scheduling Algorithm In C++ Programs
- PRIORITY WITH PREEMPTIVE Scheduling Algorithm In C++ Programs
- ROUND ROBIN Scheduling Algorithm In C++ Programs
- 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