php program print square number pattern on June 02, 2024 Get link Facebook X Pinterest Email Other Apps php program print square number pattern Example :-<?phpecho "<pre>";//define the number of rows$rows =5;//loop each rowfor($i=1;$i<=$rows;$i++){echo " ";//loop each columfor($j=1; $j<=$rows;$j++){ echo $j*$j." ";}echo "</br>";}echo "</pre>";?>php program print square number pattern Output :-Related Post :-css border propertyhtml datatime pickerhtml paragraph tag Comments
Comments
Post a Comment