3.

  1. I
  2. I.
  3. I.
  4. I. ֳ
  5. II
  6. II.
  7. II.

, ( )

A C E G I
I A C E G
G I A C E
E G I A C
C E G I A

:

' ( i), , 䳿, ' :

I) ( A C E G I, ),

II) ,

III) ;

( j) ( 1- 5 ); 䳿 ( ):

1) ( C), , 'I', C 'A',

2) C ,

3) C ( , ).

, , 䳿 , - . г : for.

#include

#include

int main () // в

{

int i, j; / * ˳ * /

char c = 'A'; / *

* /

//

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

{/ * * /

/ * * * * I) * /

for (j = 1; j <= 5; j ++)

{/ * * /

if (c> 'I') c = 'A'; / * * * 1) * /

printf ( "% 2c", c); / * * * 2) * /

c ++; c ++; / * * * 3) * /

} / * ʳ * /

/ * * * * II) * /

printf ( "\ n");

/ * * * * III) ϳ * /

c--;

c--;

} / * ʳ * /

getch ();

return 0;

}

ϳ , , , . C C ( -), - .

( ) ѳ:

1) i j - , ;

2) for , .

, , .

#include

#include

int main () //

{

char i, j, c;

for (i = 1, c = 'A'; i <= 5; printf ( "\ n"), c- = 2, i ++)

{

for (j = 1; j <= 5; c + = 2, j ++)

{

if (c> 'I') c = 'A';

printf ( "% 2c", c);

}

}

return 0;

}


-

, while :

#include

#include

char First; / * * /

char C; / * * /

int main ()

{

First = 'K'; / * * /

while (First> = 'C')

{

/ * * /

C = First;

while (C <= 'I')

{

printf ( "% 2c", C); //

C + = 2; //

}

/ * * /

C = 'A';

while (C

{

printf ( "% 2c", C); //

C + = 2; //

}

/ * * /

printf ( "\ n");

/ * * /

First- = 2;

}

getch ();

return 0;

}


1. 2. 3. 4.
A D G J M A B C D E A B C D E F A
M D G J M B C D E B C D E F G B C
M J G J M C D E C D E F G H D E F
M J G J M D E D E F G H I - - - -
M J G D M E E F G H I J F E D
M J G D A F G H I J K C B
A
5. 6. 7. 8.
A B C D E F G H I A B C D E A E D C B A B C D E
B C D E F G H E A C D E B E D C A A B C D
C D E F G E D A D E C E D B A A B C
D E F E D C A E D E C B A A B
E E D C B A E D C B A A
E D C B A
9. 10. 11. 12.
I A + + O + + F
I G B A B + O O O + E F
I G E C B A B C O O O O O D E F
I G E C D C B A B C D + O O O + C D E F
I G E C A C B A B C + + O + + B C D E F
B A B A B C D E F
A
13. 14. 15. 16.
A A D B E C A E D C B A C E G I
B C C A D B E B A E D C B D F H J
D E F E C A D B C B A E D C E G I K
G H I J B E C A D D C B A E D F H J L
K L M N O D B E C A E D C B A E G I K M
17. 18. 19. 20.
A B C D E A D G J M E A B C D E F
Z B C D E B E H K N D E B C D E F
Y Z C D E C F I L O C D E C D E F
X Y Z D E D G J M P B C D E D E F
W X Y Z E E H K N Q A B C D E E F
F
21. 22. 23. 24.
I H G F E N M L K J A A
H G F E M L K J B C A * B
G F E L K J D E F A * B * C
F E K J G H I J A * B * C * D
E J K L M N O A * B * C * D * E

3

1. for ѳ?

2. ++, - -, + = ..?

3. break ѳ?

4. for ( - - )?

5. while?

6. do ... while?

7. - -?




- | 3 .

̳ | | 1 | | 2 | | | | 6 | |

© um.co.ua -