SlideShare a Scribd company logo
2
Most read
12
Most read
13
Most read
Looping Statement &
Flow Chart
Guided by-
All Teachers
Presented by –
Rahul Sahu
B.Sc.- IIIrd Year (CS)
Looping Statement:-
The Statement which is use to repeat the single or block
of statement up to given condition is known as looping
statement.
Type of looping statement:- looping statement is
divided in two parts-
i. Entry control loop
ii. Exit control loop
Entry Control Loop:-
The looping statement which check the condition first
and than execute block of statement is known as Entry
control loop.
It is known as Entry control loop because it check
condition in Entry level of loop. If condition is true the
body of loop is executed and if condition is false the
body of loop is not executed.
Ex:- for and while.
Exit Control Loop:-
This looping statement is executed body of loop first (at
least one time) and than condition is checked because
the condition is checked at the time of exit this looping
statement is known as Exit control loop.
Ex:- do while .
While loop:-
The simplest entry control loop which can first check
condition than execute body of loop if condition is true.
Syntax:-
while(condition)
{
-----------------
body of loop;
-----------------
increment / decrement operator of a counter
variable;
}
Example:-
#include<stdio.h>
void main()
{
int a,b,c;
printf(“n Enter the no. to print table”); Output:-
scanf(“%d”,&a);
b=1;
while(b<=10)
{
c=a*b;
printf(“n %d x %d = %d”,a,b,c);
b++;
}
getch();
}
For loop:-
For is composite control loop in which all the looping
part is written single line.
Syntax:-
for(initialization ; condition; increment)
{
-------------------
body of loop;
-------------------
}
Example:-
#include<stdio.h>
void main()
{
int a,b,c;
printf(“n Enter the no. to print table”); Output:-
scanf(“%d”,&a);
for(b=1;b<=10;b++)
{
c=a*b;
printf(“n %d x %d = %d”,a,b,c);
}
getch();
}
Do While Loop:-
do while is exit control loop in which body of loop
executed first ( at least one time) by do statement and
than condition is checked by while statement. If
condition is true the process is repeated otherwise next
part of program is executed.
Syntax:-
do
{
-----------------
Block of statement;
------------------
}while(condition);
goto statement:-
It is a jumping statement use to jump the control of
program from one part to another specific part.
Syntax:-
goto label;
Types of goto statement:-
1. Forward jump (label declare to below of goto )
2. Backward jump (label declare to above of goto)
Flow Chart:-
A flow chart is essentially a diagram or picture which
defines the procedure how to solve the problem. A flow
chart show the order of operations. It also show the
relationship between the sections of the program. Flow
chart are independent of a particular computer or
computer language.
Some Basic Symbol For
Flow Chart:-
Start / End In page break
Input / Output Off page break
Processing
Decision
Flow of Process
Example:-
Print table
False
True
Start
Enter no. a
b=1
Is
b<=10
c= a * b
Print a x b =c
b++
Stop
Thank you

More Related Content

PPTX
Loops in c
PPTX
Decision Making Statement in C ppt
PPTX
Loops c++
PPTX
Variables in C++, data types in c++
PPTX
Functions in c++
PPTX
Loop(for, while, do while) condition Presentation
PPTX
The Loops
PPT
Function overloading(c++)
Loops in c
Decision Making Statement in C ppt
Loops c++
Variables in C++, data types in c++
Functions in c++
Loop(for, while, do while) condition Presentation
The Loops
Function overloading(c++)

What's hot (20)

PPTX
Operators and expressions in C++
PPTX
Unit 4. Operators and Expression
PPTX
Control structures in c++
PPTX
Operators and expressions in c language
PPTX
C decision making and looping.
PPTX
C if else
PDF
C++ goto statement tutorialspoint
PPTX
Types of loops in c language
PDF
Unit ii chapter 2 Decision making and Branching in C
PPTX
C++ decision making
PPTX
Switch statement, break statement, go to statement
PPT
Control Structure in C
PPT
Functions in C++
PDF
Unit II chapter 4 Loops in C
PPTX
Control Statement programming
PPTX
C Programming: Control Structure
PPTX
Constructor and Destructor in c++
PPT
C by balaguruswami - e.balagurusamy
PPTX
If else statement in c++
Operators and expressions in C++
Unit 4. Operators and Expression
Control structures in c++
Operators and expressions in c language
C decision making and looping.
C if else
C++ goto statement tutorialspoint
Types of loops in c language
Unit ii chapter 2 Decision making and Branching in C
C++ decision making
Switch statement, break statement, go to statement
Control Structure in C
Functions in C++
Unit II chapter 4 Loops in C
Control Statement programming
C Programming: Control Structure
Constructor and Destructor in c++
C by balaguruswami - e.balagurusamy
If else statement in c++
Ad

Similar to Looping Statement And Flow Chart (20)

PPT
Programs in C based on looping statements
PPTX
C Programming - Decision making, Looping
PPTX
Bsc cs pic u-3 handling input output and control statements
PPTX
Diploma ii cfpc u-3 handling input output and control statements
PPTX
Btech i pic u-3 handling input output and control statements
PPTX
handling input output and control statements
PPTX
Mca i pic u-3 handling input output and control statements
PDF
PROBLEM SOLVING USING NOW PPSC- UNIT -2.pdf
PPTX
Control Statement IN C.pptx
PPTX
C PROGRAMMING-CONTROL STATEMENT (IF-ELSE, SWITCH)
DOCX
loops and iteration.docx
PDF
175035-cse LAB-04
PPTX
C Programming: Looping Statements in C Pgm
PPTX
Managing input and output operations & Decision making and branching and looping
PPTX
Loops In C++
DOCX
itretion.docx
PPTX
CONTROL STMTS.pptx
DOCX
Programming Fundamentals lecture 8
PDF
Chapter 9 - Loops in C++
PPTX
Java covers syntax, data types, object-oriented concepts, control flow, excep...
Programs in C based on looping statements
C Programming - Decision making, Looping
Bsc cs pic u-3 handling input output and control statements
Diploma ii cfpc u-3 handling input output and control statements
Btech i pic u-3 handling input output and control statements
handling input output and control statements
Mca i pic u-3 handling input output and control statements
PROBLEM SOLVING USING NOW PPSC- UNIT -2.pdf
Control Statement IN C.pptx
C PROGRAMMING-CONTROL STATEMENT (IF-ELSE, SWITCH)
loops and iteration.docx
175035-cse LAB-04
C Programming: Looping Statements in C Pgm
Managing input and output operations & Decision making and branching and looping
Loops In C++
itretion.docx
CONTROL STMTS.pptx
Programming Fundamentals lecture 8
Chapter 9 - Loops in C++
Java covers syntax, data types, object-oriented concepts, control flow, excep...
Ad

Recently uploaded (20)

PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Lesson notes of climatology university.
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
master seminar digital applications in india
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Insiders guide to clinical Medicine.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Cell Structure & Organelles in detailed.
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
01-Introduction-to-Information-Management.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Lesson notes of climatology university.
Microbial diseases, their pathogenesis and prophylaxis
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
RMMM.pdf make it easy to upload and study
Module 4: Burden of Disease Tutorial Slides S2 2025
master seminar digital applications in india
Abdominal Access Techniques with Prof. Dr. R K Mishra
Insiders guide to clinical Medicine.pdf
Computing-Curriculum for Schools in Ghana
O5-L3 Freight Transport Ops (International) V1.pdf
TR - Agricultural Crops Production NC III.pdf
Pre independence Education in Inndia.pdf
Basic Mud Logging Guide for educational purpose
Cell Structure & Organelles in detailed.
Microbial disease of the cardiovascular and lymphatic systems
VCE English Exam - Section C Student Revision Booklet
Anesthesia in Laparoscopic Surgery in India
PPH.pptx obstetrics and gynecology in nursing
01-Introduction-to-Information-Management.pdf

Looping Statement And Flow Chart

  • 1. Looping Statement & Flow Chart Guided by- All Teachers Presented by – Rahul Sahu B.Sc.- IIIrd Year (CS)
  • 2. Looping Statement:- The Statement which is use to repeat the single or block of statement up to given condition is known as looping statement. Type of looping statement:- looping statement is divided in two parts- i. Entry control loop ii. Exit control loop
  • 3. Entry Control Loop:- The looping statement which check the condition first and than execute block of statement is known as Entry control loop. It is known as Entry control loop because it check condition in Entry level of loop. If condition is true the body of loop is executed and if condition is false the body of loop is not executed. Ex:- for and while.
  • 4. Exit Control Loop:- This looping statement is executed body of loop first (at least one time) and than condition is checked because the condition is checked at the time of exit this looping statement is known as Exit control loop. Ex:- do while .
  • 5. While loop:- The simplest entry control loop which can first check condition than execute body of loop if condition is true. Syntax:- while(condition) { ----------------- body of loop; ----------------- increment / decrement operator of a counter variable; }
  • 6. Example:- #include<stdio.h> void main() { int a,b,c; printf(“n Enter the no. to print table”); Output:- scanf(“%d”,&a); b=1; while(b<=10) { c=a*b; printf(“n %d x %d = %d”,a,b,c); b++; } getch(); }
  • 7. For loop:- For is composite control loop in which all the looping part is written single line. Syntax:- for(initialization ; condition; increment) { ------------------- body of loop; ------------------- }
  • 8. Example:- #include<stdio.h> void main() { int a,b,c; printf(“n Enter the no. to print table”); Output:- scanf(“%d”,&a); for(b=1;b<=10;b++) { c=a*b; printf(“n %d x %d = %d”,a,b,c); } getch(); }
  • 9. Do While Loop:- do while is exit control loop in which body of loop executed first ( at least one time) by do statement and than condition is checked by while statement. If condition is true the process is repeated otherwise next part of program is executed. Syntax:- do { ----------------- Block of statement; ------------------ }while(condition);
  • 10. goto statement:- It is a jumping statement use to jump the control of program from one part to another specific part. Syntax:- goto label; Types of goto statement:- 1. Forward jump (label declare to below of goto ) 2. Backward jump (label declare to above of goto)
  • 11. Flow Chart:- A flow chart is essentially a diagram or picture which defines the procedure how to solve the problem. A flow chart show the order of operations. It also show the relationship between the sections of the program. Flow chart are independent of a particular computer or computer language.
  • 12. Some Basic Symbol For Flow Chart:- Start / End In page break Input / Output Off page break Processing Decision Flow of Process
  • 13. Example:- Print table False True Start Enter no. a b=1 Is b<=10 c= a * b Print a x b =c b++ Stop