C++ Fundamentals Practice Problems Last Updated : 10 Apr, 2025 Comments Improve Suggest changes Like Article Like Report Fundamental concepts form the foundation of learning any programming language. They include absolute basic topics such as storing and accessing data, input and output, performing mathematical, logical, operations, etc. So it is important to have clear understanding of fundamentals to move on to the more complex concepts.Solving practice problems is the best way to improve programming skills in C++. This article provides you practice problems to help learners build a strong foundation.Easy ProblemsThese problems are the basic demonstrations of fundamental concepts and their basic usage.Print GeeksForGeeksReturn SizeGlobal VariableAdd Auto KeywordSwap the NumbersType ConversionType InferenceThe New LinePrint with SpacePrint with SeparatorScientific FormatInput IntegerConvert to HexadecimalLast Digit of a NumberSum of N NumbersEvaluate FormulaeFind if +ve, -ve, or 0Compare Two NumbersLeap YearEven Odd GameGreatest of ThreeMedium ProblemsProblems in this section focuses on using the fundamental concepts to solve some simple real world problems. It may also need the knowledge of basic mathematical concepts.AP TermGeometric Progression TermThe FizzBuzz ProgramGCDLCMCalculatorBinary to DecimalDecimal to BinaryCheck PrimeNext Prime NumberPrime FactorizationRight Angle TriangleRight Angle Triangle 2Inverted Right Angle TriangleTable DifferencePrerequisiteTo solve the above problems, you need to have some basic understanding of C++ fundamentals:Variables and Data TypesOperatorsInput and OutputConditional StatementsLoopsIf you want to revise these topics, refer to GeeksforGeeks' C++ Tutorial.How to solve practice problems?Each of the above link will take you to the practice portal where the problem statement tells you all the required information about the problem, and you have to write the solution in the code editor.Screenshot of Code EditorOnce your solution is complete, you can check it for example test case using the compile and run button at the bottom right of the page.Editor ControlsIf you are sure of your solution, press the submit button. The GfG's compiler will run your solution for a variety of test cases and if all these cases are passed, you solution will be accepted.Your own custom cases can also be checked before submission by using Custom Input button but keep in mind to follow the program's input layout. Comment More infoAdvertise with us Next Article C++ Fundamentals Practice Problems A abhishekcpp Follow Improve Article Tags : C++ Programs C++ Practice Tags : CPP Similar Reads C++ Function Practice Problems Functions are the basic building block of the program. They are the block of code that performs a specific task. Function can be executed from anywhere in the program any number of times. They increase the modularity and reusability of the code.Practicing problems is one of the most effective ways t 2 min read C++ OOPs Practice Problems OOPs, stands for Object Oriented Programming, is a technique of writing programs using the real-world concepts such as class, objects, encapsulation, inheritance, abstraction and polymorphism. It is preferred over other techniques as it produce more secure, robust and scalable software. It is one of 2 min read C++ Compound Data Types Practice Problems C++ Compound data types are those data types that are created from in-built data types to provide a different way to use them. They are created to suite the need of a particular task in which the in-built data types fall short.Practicing problems is one of the most effective ways to improve programm 3 min read C/C++ Mathematical Programs Mathematical Algorithms in programming are the specialized method to solve arithmetic problems such as finding roots, GCD, etc. Most of us are familiar with the conventional methods and concepts used to solve such problems but they may not be the best choice in programming, such as the best choice f 2 min read C++ Exercises - C++ Practice Set with Solutions Do you want to improve your command on C++ language? Explore our vast library of C++ exercise questions, which are specifically designed for beginners as well as for advanced programmers. We provide a large selection of coding exercises that cover every important topic, including classes, objects, a 15+ min read Like