Professional Documents
Culture Documents
Flowchart Loop Structure
Flowchart Loop Structure
decorations
num
choice
output "Enter 1 to
continue:"
input choice
choice = 1?
output "Enter
1 to continue
input choice
Stop
Source Code
#include <iostream.h>
#include <conio.h>
int main() {
int choice;
clrscr();
while ( choice == 1) {
cout << "Enter 1 to continue: ";
cin >> choice;
}
getch ();
return 0;
}
start
Flowchart Loop
Structure : Non-zero
Non-negative integer
decorations
num limit
num choice
output "Enter non-zero
non-negative integer:"
input limit
counter <=
input = counter
+1
Stop
Source Code
#include <iostream.h>
#include <conio.h>
int main() {
int limit;
clrscr();
Screen Output