else
begin
y:a*sin(a);
z:Sqr(y)*y;
`:tan(yz);
writeln(z)
end;
Ko`pgina operatorlar kabi, shartli operator ham rekursivlik xossasiga ega yahni, shartli operator ichida yana shartli operator qatnashishi mumkin. Lekin, chala shartli operatorning ichida yana shartli operator yozishda ehtiyot bo`lmoq zarur, chunki yozilgan operatorni ikki xil ma`noda tushunish mumkin:
if B1 then if B2 then S1 else S2
bu operator quyidagicha tushunilishi mumkin:
1) if B1 then begin if B2 then S1 else S2 end
if B1 then begin if B2 then S1 end else S2
Do'stlaringiz bilan baham: |