                                                                              

 /* Example1 - program found max from 3 digit */                              

                                                                              

 begin                                                                        

    x1:=read;                                                                 

    x2:=read;                                                                 

    x3:=read;                                                                 

    max:=x1;                                                                  

    if x2>x1 then                                                             

       max:=x2                                                                

    fi;                                                                       

    if x3>max then                                                            

       output(x3)                                                             

    else                                                                      

       output(max)                                                            

    fi                                                                        

 end                                                                          

