Professional Documents
Culture Documents
By
Shubham D. Jadhav
BSc Second Year
CONTENTS
Introduction
Flowchart
example
INTRODUCTION
For loop is entry-controlled loop.
should run.
When we use for loop
#include<iostream.h>
using namespace std;
int main() {
for (int i =1 ; i<=5 ;++i){
cout<< i <<“ ” ;
}
return 0;
}
Output: 1 2 3 4 5
How Program Works
Iteration Variable i <= 5 Action