2.8.                                                              55

2.8.2.  

   C++    , 
   {  }.       -
      .  
 C++    .      .
      .     C++, 
       . ,  
 ,    .

2.8.3.  if  if-else

    i f  :

if {)


  ,   ;    -
 .  ,   i f ,  
 ,        ,
     .    
   1     temperature  
 0.    .     i f
  ,    .

  if_test.cpp

if (temperature >= 0)

cout  "  i\n";

cout  " "  temperature  endl ;

  if    if-else.     
:

if ()

!
else

2

  ,   !,  2 -
;   ,   !,  2 -
.  ,   if-else ,  
 .   :

  if_test.cpp

if (x < )

min = x;

else

min =  ;

cout  "min = "  min;