Showing posts with label Loop. Show all posts
Showing posts with label Loop. Show all posts

Friday, January 29, 2016

PYRAMID IN PHP: Form an Upside Down Pyramid Using Numbers in PHP

I created another PHP Code to dsiplay a pyramid out of numbers. This program uses two (2) looping statement. In my example, I did used the w...

Thursday, January 28, 2016

JAVA ODD OR EVEN: Display Numbers in a Loop and Identify if Odd or Even

This example uses Java looping statement specifically the  while loop  but you can also use the different looping statements. The example be...

Tuesday, January 26, 2016

FOR LOOP PHP: Display Numbers Using For Loop in PHP

For loop is used if you already know how many times your code will be executed. Syntax for(init;condition;increment/decrement) {  statement...

Monday, January 25, 2016

FOREACH LOOP PHP: Display Data from An Array Using Foreach Loop in PHP

An array  is a special variable that holds not just a single value, but multiple values. Let's say we have an array of names such as Rea...

Sunday, January 24, 2016

FOR LOOP IN PHP: Display Numbers Using For Loop

PHP for loop  is used to repeat execution of statement until a certain condition is true . First thing to do in the for loop is to initializ...

PHP LOOP: Display Numbers Using Do While Loop

The Do While  loop executes the body of the loop before checking for the condition. Unlike the while loop wherein testing the condition is d...

PHP ODD OR EVEN: Display Numbers Using A Loop and Identify If Odd or Even

This example uses PHP looping statement specifically the while loop  but you can also use the different looping statements. The example belo...

WHILE LOOP IN PHP: Display Numbers Using While Loop in PHP

PHP while loop  is used to execute statement/s if the condition is true until a certain condition is false . Syntax for the while loop whil...

Friday, January 22, 2016

JAVA LOOP: Display Numbers in Fibonacci Series Code

Fibonacci series is achieved by adding the first and second value to solve for the third number. And then the 2nd and third to solve for the...

Thursday, January 21, 2016

PHP LOOP: Display A Fibonacci Series Code

Fibonacci series is achieved by adding the first and second value to solve for the third number. And then the 2nd and third to solve for the...