For Loop

  hello little reader, how is your today's adventure is going..??
today I'm gonna take you into a trip with new exciting lesson about LOOPS  specially THE FOR LOOP  so I'm gonna explain it to you from DORA'S view . so COUNTS with me 
3
2
1
goooooooooooooo...



so here is the story .
it's very hot today so we will go to the beach to enjoy fresh air and swim and have a so much fun..
but we don't know how to go to the beach ...who will we ask ..???  that's right little reader ...THE MAP  we say the magic word  MAP MAP MAP  ohhhhh
 when we ask the map it tells us that we have to  ..  :
  1. git to the long forest   
  2. then we cross the Suspension bridge 
  3. and go along with mountains to the big tree  
  4. and we will find the beach at the end  

so we start out adventure ....
we walk to the long forest , but we didn't find the beach there ...!!!
but we didn't supposed to find beach there this is just our first step in the trip....
I can't wait to reach the beach 😓😓
hold on little reader we got this✊✊✊
so we will keep move until we reach the beach 
so we kept moving until we reach the Suspension bridge  and we didn't find any beach there too ...!!
hay hay little reader , we will find the beach when we complete our adventure .....
hold you self on and take next step . we can sing until we arrive 





 

  

I hope you enjoined the music   and we reached out the mountains and guess what .......yeah we didn't find any beach....
dear little reader how many times i tell you be patient we will reach out the beach when we finish all .steps going

yessssssssssss..... we did it we finally reach the beach and understand the FOR LOOP Concept .. great  
right
?????????
you may be wondering we didn't talk about any loop
that's the fun part little reader the FOR LOOP is too simple that we did it without saying that we doing it ...but if you didn't how ??? . let me show you...
remember my little friend when we started out adventure after calling out MAP for help and it told us the steps , that's was our START POINT  to reach the beach which is END POINT  that's how FOR LOOP  works 
 every loop including FOR LOOP has it's own START AND END POINTS and also how we go there  which is by WALKING or RIDING or any way and what we do in trip to reach the end point like  SINGING , HELP FRIENDS 
so we as programmers we tell the computer this : 
hay computer 
(START FROM THERE  ;  UNTIL YOU REACH END POINT  ;  BY WALKING )
 {
AND IN WAY GOING THERE SING WITH MONKEY AND HELP SOME FRIENDS
 }
 

cool right so the computer start from where we tell him and he start singing and he  walks to next stop and start asking DO WE REACH THE END POINT  ,and he will look at MAP  to see if he done or not , if he didn't reach out END POINT .. he will keep moving forward next step and sings and walk until he reach out the next step and start asking if he reached out END POINT  and look at MAP  and so on and so far .................until he reach out END POINT  and FOR LOOP WILL END there .
CONGRATULATIONS 😉😊 little reader friend you became well rounded with FOR LOOP    
until next adventure have fun ✌😍 

    


Comments

  1. well i can't really express how much I love it, great story flow also great text style with the images and the example it's flawless

    ReplyDelete

Post a Comment