Foundations of Coding

First steps in programming

Code Trail1 of 6

Learn the fundamental syntax of various programming languages like C, C++, Python, Java, and JavaScript. This trail provides a solid foundation for coding beginners.

9 Chapters

113

0123456789
0123456789
0123456789

Concept Explanations & Warm up problems

Learn concepts with detailed explanations and illustrations. Wrap up with practice problems to apply what you've learned.

196

0123456789
0123456789
0123456789

Challenge Problems

Apply what you've learned to various practice problems and identify any gaps in your understanding.

87

0123456789
0123456789

Test Problems

The final stage of each chapter consists of test problems that you must solve on your own, without solutions or discussion features. With a slightly higher difficulty level, these problems help you refine your skills.

Table of contents

Simple PrintVariable & TypePrint FormatRoundAssigning ValueAssign from VariableSwapAssign Multiple Variables

IntegerFloatInput Between BlankMultiple LinesStringInput Between Special Character

Four Arithmetic OperationsSum and Average

IfIf ElseTernary OperatorIf Elif ElseIf Elif Elif ElseIf IfIf Else If ElseComparison OperatorsAND OperatorOR OperatorAND OR MixedNested Conditional

Increment by oneIncrement by more than oneDecrement by oneIncrement by oneIncrement by more than oneDecrement by oneRepeat n timesIf inside forIf Statement Inside a for LoopCnt VariableSum VariableProd VariableContinue KeywordBreak KeywordInfinite LoopLoop in Undecidable SituationAny SatisfyingAll Satisfying

RectangleRight TriangleRow SymmetricColumn SymmetricRow Column SymmetricRules in the rowRegardless of shapeGeneral OrderMathematical PatternCnt VariablePattern for the row or columnMultiplication TablePrint as shapePrint according to formatPrint AlphabetRepeat n times

Enter multiple in one lineIndexNecessity of ArrayCount ArrayRetrieveMin&Max

Input 2d ArrayDefine 2d ArrayDraw Pattern with 2d ArrayFiil in order2d Array as a Grid

Enter string without blankEnter string with blankArray of stringRetrieveConcatenationFindEdit CharacterRemove CharacterShiftASCII CodeAlphabet Case ConversionString to IntInt to StringCompare

The skills you gain...

Mastery of basic syntax in C, C++, Python, Java, and JavaScript

Ability to write programs that handle input and output according to specified formats

Understanding of fundamental programming concepts like variables, loops, and conditional statements

Confidence in tackling introductory coding problems and understanding their requirements

Skill to implement simple algorithms, such as checking whether a number is prime

Recommended for those that need...

Are curious about coding but unsure where to start

Have tried learning to code before but struggled to grasp the concepts

Want to build a solid foundation in programming from the ground up

Find it challenging to write basic programs, like summing a sequence of numbers

Desire a structured approach to learning programming fundamentals

Want to gain confidence in their ability to understand and solve simple coding problems

Branch and Bound Co., Ltd. | © 2026. Branch and Bound Inc.

All educational materials on the Codetree site are protected by copyright law. Unauthorized reproduction/copying/distribution without the consent of the author is prohibited. Copyright © Branch & Bound | contact@codetree.ai

CEO : Seung-Yong Lee | Address: 1000 N. West Street, Suite 1200, Wilmington, Delaware, 19801 | Landline : +1 302 295 4813 | Contact : contact@codetree.ai