C++ Programms

Welcome to C++ Programs practice and solution page. Here you can practice various categories program and you can also find the solution of programs with logic. You can find the solution of most famous problems with logic and full explanation. All programs are successfully compiled and tested in Dev C++ in case of any program showing error let me know so I can fix the problem. If any C++ Program does not have a header file it is a problem of the website, you can add C++ Master Header file that is #include<bits/stdc++>. In this site, you can find the solution of India's most reputed website like GeeksForGeeks and HackerRank in C++. If you find anything wrong in our code or you have a better solution for a particular code please comment below or you can publish your post on our website.

Check This:- Hacker rank solution for Strings, Classes, STL, Inheritance in C++.


Note:- I compile all C Programs in Dev C++, if there is any case program is not working and showing error please let me know in Comment section. If you are using Adblocker, Please disable Adblocker Because some functions of the site may not work correctly.

Also Check:- Geeksforgeeks solution for School, Basic, Easy, Medium, Hard in C++.

Extreme Recommended:- Like our Facebook Page or Join our Facebook Group andGoogle plus Community for up-to-date for a new post or if you have any Query and suggestion you can ask here (Facebook group, Facebook Page, and Google Plus). Plese share our post in Social media platforms and also suggest to your Friends to join our groups and like our page, Don't forget to Subscribe. Enter your Email and click to subscribe.


Table of Content


1. Simple Programs

2. If / Else Statement Programs

3. Loop Programs

4. Switch Case programs

5. Array Programs

6. String Programs

7. Function Programs

8. Pointer Programs

9. Structure Programs

10. Class Programs

11. File Handling Programs

12 Series Programs

13. Pattern Programs

14. Scheduling Algorithm Programs

15. Sorting Programs

16. Searching Programs



1. Simple Programs


1. C++ Program To Find Area And Circumference Of Circle

2. C++ Program To Print Ascii Value Of Character

3. C++ Program To Find Area Of Triangle

4. C++ Program to Convert a person's name in Abbreviated

5. C++ Program For Calculate A Simple Interest

6. C++ Program To Find Greater No. Among given Three Number

7. C++ Program For Find The Gross Salary Of An Employee

8. C++ Program For Calculate Percentage Of 5 Subjects

9. C++ Program For Converting Temperature Celsius Into Fahrenheit

10. C++ Program To Display Size Of Different Datatype

11. C++ Program To Check Number Is Positive Or Negative

12. C++ Program To Find Character Is Vowel Or Not

13. C++ Program To Calculate Factorial Of A Given Number

14. C++ Program To Read Integer (N) And Print First Three Powers (N^1, N^2, N^3)

15. C++ Program To Swap Two Number Without Using Third Variable

16. C++ Program To Find The Address Of Variable


2. If / Else Statement Programs


7. C++ Program To Check Character Is Uppercase, Lowercase Alphabet Or A Digit or A Special Symbol Using If/Else Statements

8. C++ Program To Find Quotient And Reminder Of Two Numbers Using If/Else Statements

9. C++ Program To Convert A Lowercase Alphabet To Uppercase Alphabet Or Vice-Versa Using If/Else Statements

10. C++ Program To Find Max Number Among Given Three Number Using If/Else Statements

11. C++ Program To Check Year Is Leap Year Or Not Using If/Else Statements

12. C++ Program To Find The HCF Or LCM Of Two Number Using If/Else Statements

13. C++ Program To Check Expression Parenthesis Is Valid Or Not Using If/Else Statements

14. C++Program To Check Age Between 40 To 60 Using If/Else Statements

15. C++ Program To Count Letters, Space, Digits, And Others Using If/Else Statements

16. C++Program To Check Date Validation (Valid Or Not) Using If/Else Statements

17. C++ Program To Determine Whether The Seller Made Profit or Loss. Also, Determine How Much Profit or Loss He Made


3. Loop Programs



4. Switch Case programs



5. Array Programs



6. String Programs



7. Function Programs



8. Pointer Programs



9. Structure Programs


4. C++ Program For Book Details Using Structure


10. Class Programs




11. File Handling Programs



12 Series Programs



13. Pattern Programs


1. C++ Program To Print A Pascal Triangle

2. C++ Program To Print A Given STAR Pattern

3. C++ Program To Print A Given Reverse STAR Pattern

4. C++ Program To Print Half Pyramid Using *

5. C++ Program To Print Reverse Half Pyramid Using *

6. C++ Program To Print Flip Pattern Of Half Pyramid Using *

7. C++ Program To Print Flip Pattern Of Reverse Half Pyramid Using *

8. C++ Program To Print Diamond Pattern Using *

9. C++ Program To Print Half Pyramid Using Number

10. C++ Program To Print Half Pyramid Using Similar Number In Row

11. C++ Program To Print Half Pyramid Using Alphabet

12. C++ Program To Print REVERSE Of Half Pyramid Using Alphabet

13. C++ Program To Print INDIA Pattern As Given Below

14. C++ Program To Print Half Pyramid Alternative Using ( * ) Star And Alphabet

15. C++ Program To Print Perfect Square Of Program Using Sleep And Delay Function

16. C++ Program To Print Heart Pattern Program Using Star

17. C++ Program For Draw A Perfect Christmas Tree

18. C++ Program To Print A Given Pattern Or Series Like 12345, 5432, 234, 43, 3


14. Scheduling Algorithm Programs



15. Sorting Programs



16. Searching Programs