for loop
A for loop is an entry control loop which has all three parts of loop structure i.e.. initialization, condition and updation. these three parts are separated by semicolon (;) . loop statements are executed til condition is true. when condition is fail then program control will be shifted to next instruction of program. for loop is more effective when programmer already known that how many times loop will be executed. for loop is a simple loop structure and if we remove initialization and updation parts from it then it works similar to while loop.
เคซॉเคฐ เคฒूเคช เคเค เคंเค्เคฐी เคंเค्เคฐोเคฒ เคฒूเคช เคนै เคเคธเคฎें เคฒूเคช เคे เคคीเคจो เคญाเคो เคเคจिเคถिเคฏเคฒाเคเคेเคถเคจ, เคंเคกीเคถเคจ เคเคตं เค
เคชเคกेเคถเคจ เคो เคเค เคธाเคฅ เคฐเคा เคाเคคा เคนै เคเคจ्เคนें ; เค
เคฐ्เคงเคตिเคฐाเคฎ เคธे เคชृเคฅเค เคिเคฏा เคाเคคा เคนै। เคเคฌ เคคเค เคंเคกीเคถเคจ เคธเคค्เคฏ เคนोเคคी เคนै เคฒूเคช เคे เคธ्เคेเคเคฎेंเค เคฐเคจ เคนोเคคे เคฐเคนเคคे เคนै เค
เคจ्เคฏเคฅा เคช्เคฐोเค्เคฐाเคฎ เคंเค्เคฐोเคฒ เค
เคเคฒे เคธ्เคेเคเคฎेंเค เคชเคฐ เคชเคนुँเค เคाเคคा เคนै। เคเคธเคा เคช्เคฐเคฏोเค เคคเคฌ เค
เคค्เคฏเคงिเค เคช्เคฐเคญाเคตी เคนोเคคा เคนै เคเคฌ เคช्เคฐोเค्เคฐाเคฎเคฐ เคो เคฏเคน เคชเคนเคฒे เคธे เค्เคाเคค เคนो เคी เคฒूเคช เคธ्เคेเคเคฎेंเค เคो เคिเคคเคจी เคฌाเคฐ เคฐเคจ เคिเคฏा เคाเคฏेเคा। เคซॉเคฐ เคฒूเคช เคเค เคธिंเคชเคฒ เคฒूเคช เคนै เค
เคฐ्เคฅाเคค เคฏเคฆि เคเคธเคฎें เคธे เคเคจिเคถिเคฏเคฒाเคเคेเคถเคจ เคเคตं เค
เคชเคกेเคถเคจ เคญाเค เคो เคนเคा เคฆिเคฏा เคाเคคा เคนै เคคเคฌ เคฏเคน เคต्เคนाเคเคฒ เคฒूเคช เคे เคธाเคฎाเคจ เคต्เคฏเคต्เคนाเคฐ เคเคฐเคคा เคนै।
Syntax:-
for(initialization, condition, updation){
statements;
.................
.................
}
Comments
Post a Comment