0% found this document useful (0 votes)
15 views1 page

FOR Loop

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

FOR Loop

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Sophia Fiona Mei A.

Inigo

Guide Questions:

1. What is a FOR loop?


- For loop is a programming language conditional iterative statement which is used to
check for certain conditions and then repeatedly execute a block of code as long as
those conditions are met.

2. What are the components of a FOR loop?


- A FOR loop is a control flow statement used in many programming languages to execute
a block of code repeatedly based on a condition. In most programming languages, a for
loop consists of three parts: initialization, condition, and increment/decrement.

3. How does a FOR loop works?


- A for-loop functions by running a section of code repeatedly until a certain condition has
been satisfied. Flow diagram of the following for loop code: for (i = 0; i < 5; i++) printf("*");

You might also like