हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

Explain concepts of for loop with example. - Computer Applications

Advertisements
Advertisements

प्रश्न

Explain concepts of for loop with example.

संक्षेप में उत्तर

उत्तर

For loop is an important functional looping system which is used for iteration logic when the programmer knows in advance how many times the loop should run.


Flowchart of For loop Structure and Flow chart

Syntax-

for (init counter; test counter; increment counter)
{
code to be executed;
>

Example:

<?php
for ($i = 0; $i<= 10; $i++)
{
echo “The number is: $i<br>”;
}
?>
shaalaa.com
Looping Structure
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Looping Structure - Evaluation - PART – IV [पृष्ठ ११८]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 12 TN Board
अध्याय 7 Looping Structure
Evaluation - PART – IV | Q 4. | पृष्ठ ११८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×