Programming Languages Lecture-8 Fall-2022
Programming Languages Lecture-8 Fall-2022
Lecture-8
Corse Title: Programming Language
Course Code: EL-255
Course Teachers: Dr. Sadia Muniza Faraz
Semester: Fall-2022
Offered to: S.E. (Electronic Engineering)
Chapter-3
Loops
1
11/11/2022
for ( i=0 ; i < 10;i++) ; For Loop with no Body ( Carefully Look at the Semicolon )
for (i=0,j=0;i<100;i++,j++) Multiple initialization & Multiple
Statement1; Update Statements Separated by Comma
for ( ; i<10 ; i++) Initialization not used
for ( ; i<10 ; ) Initialization & Update not used
for ( ; ; ) Infinite Loop,Never Terminates
2
11/11/2022
9 9 9 9 9 9 9 9 9 9 printf(“\n”);
}// end of external loop
} // end of main
5
.
for(j =1; j <=10; j++)
{
k k k k k k k k k k printf("%d ", i);
} // end of internal loop
} // end of main
6
3
11/11/2022
THE END