Programming Basics
Practice problems and improve your skills.
THEORY
All theory for this topic
# Programming Basics
This topic contains 100 C++17 exercises arranged from basic practice to harder applications. Read input with standard streams, keep output exact, and prefer clear code over unnecessary tricks.
YOUR PROGRESS
Topic progress
PRACTICE
Problems
Solve problems from easy to hard and build your skills step by step.
Sum of Two Numbers
Difference of Two Numbers
Product of Two Numbers
Double Sum
Sum of Two Squares
Square of Difference
Arithmetic Expression
Rectangle Perimeter
Rectangle Area
Absolute Difference
Quotient and Remainder
Last Decimal Digit
Tens Digit
Hundreds Digit
Minutes to Hours
Seconds to Clock
Pages Needed
Full Boxes
Remaining Seats
Next Multiple Distance
Average of Two
Kilometers to Miles
Celsius to Fahrenheit
Circle Area
Circle Circumference
Triangle Area
Simple Interest
Speed
Body Mass Index
Weighted Average
Maximum of Two
Minimum of Two
Sign of Number
Even or Odd
Equal Numbers
Larger Absolute Value
Divisible Check
Leap Year
Inside Inclusive Range
Triangle Exists
Both Positive
At Least One Positive
Exactly One Positive
Same Parity
Opposite Signs
Two-Digit Number
Divisible by 3 or 5
Divisible by 3 but Not 9
Outside Interval
Point in First Quadrant
Grade by Score
Age Category
Temperature Category
Day Type
Quarter by Month
Number of Solutions for ax=b
Traffic Light
Chessboard Color
Maximum of Three
Median of Three
Sum of Digits of Three-Digit Number
Product of Digits of Three-Digit Number
Reverse Three Digits
First Digit of Four-Digit Number
Sum of First and Last Digits
Swap Middle Digits
All Digits Equal
Contains Digit Seven
Digits Strictly Increasing
Largest Digit of Three
Point on Axis
Point at Origin
Same Half-Plane by X
Same Quadrant
Manhattan Distance
Point Inside Rectangle
Intervals Intersect
Intersection Length
Nearest Endpoint
Distance to Interval
Purchase Cost
Discounted Price
Taxi Fare
Paint Cans
School Desks
Battery Runtime
Data Packets
Workers Needed
Change from Payment
Total with Tax
Sort Three Numbers
Clamp to Range
Nearest of Two
Chess King Move
Chess Rook Move
Chess Bishop Move
Days in Month
Next Even Number
Round Up to Ten
Three Numbers in Nondecreasing Order
No matching problems
Try another filter or search query.