how-to-print-a-numeric-polygon

We get the output of a numeric polygon using php ‘Loops’ with logic. Here we use eight Loops for print this diamond patterns in php. – First and fifth are main and other are nested in these. – First ‘Loop’ is used for number of lines in upper triangle and fifth Loop is used for number of lines in lower triangle. – Second loop is used to print spaces, third […]

Read More

We get the output of a numeric polygon using php ‘Loops’. We apply the ‘Loops’ with logic in php coding to get the output of a polygon that shoes only ‘odd’ numbers. Here we use eight ‘Loops’. First and fifth are main and other are nested in these. First ‘Loop’ is used for number of lines in upper triangle and fifth loop is used for number of lines in lower […]

Read More

We get the output of a numeric polygon using php ‘Loops’. We apply the ‘Loops’ with logic in coding to get the diamond patterns in php. Here we use eight ‘Loops’. First and fifth are main and other are nested in these.First ‘Loop’ is used for number of lines in upper triangle and fifth loop is used for number of lines in lower triangle. Second ‘Loop’ is used to print […]

Read More

We can print diamond patterns in numeric polygon using php ‘Loops’. We apply the ‘Loops’ with logic in php coding to get the output of a polygon that shoes only ‘1’ on its border. Here we use eight ‘Loops’. First and fifth are main and other are nested in these.First ‘Loop’ is used for number of lines in upper triangle and fifth loop is used for number of lines in […]

Read More

We create a star polygon. Here we use eight ‘for’ loops. First and fifth are main and other are nested in these. First for loop is used for number of lines in upper triangle and fifth loop is used for number of lines in lower triangle. Second for loop is used to print spaces, third loop is used for left side right angle triangle that will show stars according line […]

Read More