Chuyển đến nội dung chính

Bài đăng nổi bật

Stardock DeskScapes Full

DeskScapes gives you the capability to animate and customize the wallpaper on your Windows desktop. Choose from the massive integrated library or use your own images or video files to personalize your desktop. Animate your Windows desktop wallpaper Use video and Dream files with DeskScapes to apply animated wallpaper to your desktop. The .Dream format, which DeskScapes uses, has been specially designed to contain content used to animate wallpaper. You can also apply any dream as your PC screensaver! Easily customize and create your own backgrounds DeskScapes includes over 60 special effects plus colorization options to make any image or video into a fantastic, custom background. Want to create a .Dream to share? Use the included Dream Maker app to package your own animated or video creations. System Requirements Requires a 64-bit processor and operating system Windows® 7 / 8 / 10 64-bit Microsoft DirectX™ Minimum screen resolution: 1280 x 720 Download  - DeskScapes Full  How ...

The Secret

for loop structure and full explain with example

Why For Loops?

1) Like all loops, "for loops" execute blocks of code over and over again.
2) The advantage to a for loop is we know exactly how many times the loop will execute before the loop starts.

Syntax

for(initialization; condition; increment/decrement)

{

  Statements;

}

Example:

for(i=0;i<=5;i++)

{

  statements;

}


Flow chart of for loop:
     In the following flowchart is draw similar to the above example, don't forget to see the whole explanation about the flowchart.

for loop execution flow chart






















Step 1:
     Start Initialization, if you want to initialize  any value you can assign here this is optional.

Step 2:
     Conditions are return true or false value this also optional, some examples are

Conditions
3>5        => return False
6<=6     =>  return True
3==3     =>  return True

Symbols
<           => Less than
>           => Greater than
=           => Equal
<=         => less than or equal
>=         => greater than or equal
!            => Not
!=          => Not equal

     If true then inside the for loop statements executed.

Step 3:
     Statement, in this part have any type of statements like alert, function calling, if, for and etc. Then next it will go to increments/Decrements part.

Step 4:
     Increment/Decrements this is also optional and here we can increase or decrease the value. Then go to check the condition again.

Step 5:
     Condition again check and repeat the process again, when the condition is return false value the control will go to Next Statements.


for(i=0;i<=5;i++)

{

  alert(i);

}


     Below I write all the execution steps, if you new to for loop please watch all steps.

start
i=0

i<=5  (0<=5)   => True
alert the i value (alert 0)
i++ [i=i+1]  (i=0+1)  [i=1]

i<=5    (1<=5)   => True
alert 1
i++  (i=1+1)  [i=2]

i<=5   (2<=5)  => True
alert 2
i++ (i=2+1)  [i=3]

i<=5  (3<=5)  => True
alert 3
i++  (i=3+1)  [i=4]

i<=5  (4<=5) => True
alert 4
i++  (i=4+1)  [i=5]

i<=5   (5<=5)  => True
alert 5
i++  (i=5+1)  [i=6]

i<=5   (6<=5)   => False

Then go to outside of the for loop.





Example Program:- (Editor)


Editor is Loading...

Advertisement





Tags:
for loop in allinworld99, for loop in javascript, for loop in c, for loop in c++ cpp, learn for loop in allinworld99

Nhận xét

Bài đăng phổ biến từ blog này

kmspico download

KMSpico 8. 5 is an Small Tool. By Applying KMSpico You can Stimulate Your Office 2013 Item and Windows 8 Most Version. 1st name was KMSnano, now has converted into KMSpico. Its purpose is the very same as KMSnano, is an Activator of Windows 8 and Office 2013. So it is a very usefull tool. So Download and Enjoy. KMSpico v8. 5 Setup Edition: - Requirements:. NET 4. 0 or Windows 8/2012. - Trigger: Windows Vista Business/N/Enterprise/N House windows 7 Professional/N/E/Enterprise/N/E Windows almost 8 Core/N/Professional/N/ProWMC Windows (8. one particular Preview) Office 2010/2013 House windows Server 2008/Standard/Datacenter/Enterprise/2008R2/Standard/Datacenter/Enterprise/2012/Standard/Datacenter Instruction: Work KMSpico_Install_v8. 5. exe Mount it. 1 (Optional) Produce a tokens backup with the buttom: Create. Press the Red Buttom. Performed. to download KMSpico click the download button below: DOWNLOAD

download adobe flash player 11

Adobe Flash Player is a key module for your program that permits you to see everything from video to diversions and movement on the web Convenient elements  Adobe Flash Player incorporates a scope of fascinating increases and upgrades when contrasted with past forms. Top of that rundown is the incorporation of support for the H.264 video codec and the HE-AAC sound codec, which together offer a much wealthier, better quality picture alongside perfectly clear stable. Presenting these abilities in Adobe Flash Player with just somewhat lessened execution looks set to trigger another unrest in web video, as HD motion pictures are as of now a critical component on YouTube - and they look and sound incredible! It's showing signs of improvement and better  Adobe Flash Player resolves a portion of the issues that past adaptations have experienced (like security and steadiness issues), also including support for ActionScript 3.0. It likewise makes awesome 3D illustrations conceivable. T...

Download OBS Full ( Gaming Screen recorder)

The most capable free screen recorder and gushing instrument accessible for gamers, with all that you have to accomplish proficient outcomes. It may take a short time to acquaint yourself with its interface, however the exertion will pay off. YouTube gives anybody the chance to end up plainly a supporter, however keeping in mind the end goal to begin you will require a type of programming to combine your substance. It might be that you're simply recording a straight piece to camera, however it's more probable that you'll need to make something somewhat more confounded that includes the utilization of numerous sources. Utilizing OBS Studio you can not just record straightforwardly from your webcam and receiver, you can likewise join film from amusements, include existing recordings and still pictures, catch a window or part of your screen, and substantially more. As you may figure from the name, OBS Studio is a product studio. It empowers you to work with these different sou...

Free $100