Professional Documents
Culture Documents
Introduction To Coding: Grade VI
Introduction To Coding: Grade VI
Introduction to
Coding
Version 1.0
Ethical practices in
coding
What is a programming
language?
We can interact with computers via a language that
computers understand. This language is called a
programming language. Using programming
languages, we can provide instructions to a
computer to perform a set of activities. These sets
of instructions are also called programs.
Popular programming
languages
• Python
• Java
• JavaScript
• C#
• R
• C++
• C
Chapter 2: Algorithms with block coding
Equal to == x == y x is equal to y
For example, while creating a loop to print numbers from 1 to 1000, exit criteria
is that loop should exit the block of code when the 1000th number is printed,
else the program will enter an infinite loop.
Break Statement
The break statement modifies the
normal flow of execution while it
terminates the existing loop and
continues execution of the
statement following that loop.
Let us now understand Break
Statement with help of pseudocode
Continue Statement
• Whenever a program comes across a
continue statement, the control skips
the execution of remaining statements
inside the loop for the current iteration
and jumps to the beginning of the loop
for the next iteration.
• If the loop's condition is still true, it
enters the loop again, else the control
will be moved to the statement
immediately after the loop.
Let us now understand continue
statements with pseudocode
Nested loops
Any loop in program may contain
another loop inside it. A loop inside
another loop is called a nested loop.
How it works is that first success
condition of outer loop triggers the
inner loop which runs and reaches
the completion. This combinations
of loops inside loop is helpful while
working with requirements where
user wants to work of multiple
conditions simultaneously.
Thank You