.


:




:

































 

 

 

 


,




for

() , for. :

for ( ; ; ) { ; 2; N;}

, :

for ( = ; < ; ) { ;

}

, . , . . , , . . . , .

while

, , while do...while. while C++ .

while () {

;

}

, , . while. , , , .

, . . i , while , , , , . , , i 1001 .

do while

do while while. , do while . 1 1000, do while.

, i , , 1000, .

++ 4 , :
1. goto; goto ;
2. break;
if (n>maxiter) //maxiter ))
{
flag=false;
break;
}
3. () continue;
break, .
4. return; return ();

,

, . , , .

, , . : , , , , . , , , , . , , :

#include <stdlib.h> // rand rand()

int randomNumber = rand(); //

, , randomNumber , . , rand(), .

, , . , . , void ( ) , , , . , . .





:


: 2015-11-23; !; : 609 |


:

:

- , 20 40 . - .
==> ...

1624 - | 1584 -


© 2015-2024 lektsii.org - -

: 0.01 .