<?php $A = 3; $B = 4; if (isset($A) and isset($B) and !isset($C)) { $C = sqrt(pow($A, 2) + pow($B, 2)); } echo $C; ?>