![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||||||||||||||||||||
|
Image sizes: 256x256, 128x128, 48x48, 32x32, 24x24, 16x16 File formats: BMP, GIF, PNG, ICO ![]() ![]() ![]() ![]() Tags: limbeck buddy icon, dont give a fuck icons, new customer icon, buuf icon, wkn chicas icon1. To a variable-parametre initial value is assigned;2. The iteration body is fulfilled; 3. The variable-parametre automatically increases on 1 (in the first case of a format); 4. If the parametre exceeds finite value there is a loop termination, differently - transition to item 2. The note: at usage Downto parametre automatically Decreases on 1, and loop termination occurs when parametre Becomes less than finite value. Thus, unlike first two sorts of a cycle, this cycle is used when the necessary quantity of executions of an iteration body is known. Generally speaking, the cycle "While" is universal, that is any task demanding usage of a cycle, can be solved with application of this structure. Cycles "To" and "With parametre" are created for convenience of programming. Example. To find the sum of squares of all natural numbers from 1 to 100. Let's solve this task with usage of all three sorts of cycles. I. With cycle usage "While". Program Ex1; Var A: Integer; S: Longint; Begin A: = 1; S: = 0; While A <=100 Do Begin S: = S+A*A; ![]()
| Copyright © 2006-2022 Aha-Soft. All rights reserved. |
|