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

1

Variables & Output

Learn how to store information in variables and display it on the screen.

Simple Print

Variable & Type

Print Format

Round

Assigning Value

Assign from Variable

Swap

Assign Multiple Variables

2

Input Basics

Learn how to get information from keyboard and use it.

Integer

Float

Input Between Blank

Multiple Lines

String

Input Between Special Character

3

Basic Operators

Learn how to use essential operators for basic calculations.

Four Arithmetic Operations

Sum and Average

4

Conditional Statements

Understand how to use if-statements and logical operators to make decisions.

If

If Else

Ternary Operator

If Elif Else

If Elif Elif Else

If If

If Else If Else

Comparison Operators

AND Operator

OR Operator

AND OR Mixed

Nested Conditional

5

Loops

Learn about different types of loops and how to use them to repeat tasks.

Increment by one

Increment by more than one

Decrement by one

Increment by one

Increment by more than one

Decrement by one

Repeat n times

If inside for

If Statement Inside a for Loop

Cnt Variable

Sum Variable

Prod Variable

Continue Keyword

Break Keyword

Infinite Loop

Loop in Undecidable Situation

Any Satisfying

All Satisfying

6

Nested Loops

Explore how to use loops within other loops for more complex repetitions.

Rectangle

Right Triangle

Row Symmetric

Column Symmetric

Row Column Symmetric

Rules in the row

Regardless of shape

General Order

Mathematical Pattern

Cnt Variable

Pattern for the row or column

Multiplication Table

Print as shape

Print according to format

Print Alphabet

Repeat n times

7

Arrays

Learn about arrays and how to use them with loops to manage lists of data.

Enter multiple in one line

Index

Necessity of Array

Count Array

Retrieve

Min&Max

8

Two-Dimensional Arrays

Discover how to work with grids of data using two-dimensional arrays.

Input 2d Array

Define 2d Array

Draw Pattern with 2d Array

Fiil in order

2d Array as a Grid

9

Strings

Learn the basics of strings and various operations you can perform on text.

Enter string without blank

Enter string with blank

Array of string

Retrieve

Concatenation

Find

Edit Character

Remove Character

Shift

ASCII Code

Alphabet Case Conversion

String to Int

Int to String

Compare

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