Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 4

INTRODUCTION

NAME=SATYAM RAJ
CLASS=7th
ROLL NO.=14
ADMISSION NO.=1908
SECTION=“A”
SUBJECT=COMPUTER PROJECT
WHAT IS A LOOP?
In computer programming, a set of
instructions that repeats itself until a
condition is satisfied forms a loop.
DIFFERENT TYPES OF LOOP
FOR LOOP
WHILE LOOP
DO-WHILE LOOP
DEFINE TYPES OF LOOP
FOR LOOP:-A loop that repeats a specified number of times is
called a for loop . For examples, the loop for printing numbers
from 1 to 5 will repeat five times.
WHILE LOOP:-A loop that keeps repeating until the specific
condition is true is called a while loop . The specific condition is
always defined while setting up the loop.
DO-WHILE LOOP:-A loop that keeps repeating while a specific
condition is true is called a do-while loop . The condition is
defined at the end of the loop.

You might also like