

Miscellaneous XML Tutorial Webhost Tutorial Flash Tutorial SEO Tutorial Scripting Javascript Tutorial PHP Tutorial Perl Tutorial Ajax Tutorial ASP Tutorial VBScript Tutorial Go to the editorĭo not submit any solution of the above exercises at here, if you want to contribute go to the appropriate exercise page.Web Tutorials Beginner Tutorial HTML Tutorial CSS Tutorial Write a PHP program to print alphabet pattern 'Z'. Write a PHP program to print alphabet pattern 'Y'.

Write a PHP program to print alphabet pattern 'X'. Write a PHP program to print alphabet pattern 'W'. Write a PHP program to print alphabet pattern 'V'. It should be used if the number of iterations is known otherwise use.
PHP FOR LOOP CODE
Write a PHP program to print alphabet pattern 'U'. PHP for loop can be used to traverse set of code for the specified number of times. Write a PHP program to print alphabet pattern 'T'. Write a PHP program to print alphabet pattern 'S'. Write a PHP program to print alphabet pattern 'R'. Write a PHP program to print alphabet pattern 'Q'. Write a PHP program to print alphabet pattern 'P'.

Write a PHP program to print alphabet pattern 'O'. Write a PHP program to print alphabet pattern 'N'. Write a PHP program to print alphabet pattern 'M'. Write a PHP program to print alphabet pattern 'L'. Write a PHP program to print alphabet pattern 'K'. Write a PHP program to print alphabet pattern 'J'. Write a PHP program to print alphabet pattern 'I'. Write a PHP program to print alphabet pattern 'H'.

Write a PHP program to print alphabet pattern 'G'. Write a PHP program to print alphabet pattern 'F'. Write a PHP program to print alphabet pattern 'E'. Write a PHP program to print alphabet pattern 'D'. Write a PHP program to print alphabet pattern 'C'. Write a PHP program to print alphabet pattern 'B'. Write a PHP program to print alphabet pattern 'A'. It is defined by filling the rows of the triangle with consecutive numbers, starting with a 1 in the top left corner:ġ3. Go to the editorĪccording to Wikipedia Floyd's triangle is a right-angled triangular array of natural numbers, used in computer science education. Write a PHP program to generate and display the first n lines of a Floyd triangle. For numbers which are multiples of both three and five print "FizzBuzz". For multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". Write a PHP program which iterates the integers from 1 to 50. Write a PHP script that creates the following table (use for loops). Use table width="270px" and take 30px as cell height and width.ġ0. Write a PHP script using nested for loop that creates a chess board as shown below. Add cellpadding="3px" and cellspacing="0px" to the table tag. Write a PHP script that creates the following table using for loops. Write a program which will count the "r" characters in the text "w3resource". The factorial of a number is the product of all integers up to and including that number, so the factorial of 4 is 4*3*2*1= 24. Write a program to calculate and print the factorial of a number using a for loop. Create a script to construct the following pattern, using a nested for loop. Create a script to construct the following pattern, using nested for loop. Create a script using a for loop to add all the integers between 0 and 30 and display the total. There will be no hyphen(-) at starting and ending position.
