{{ searchForm . total }} results found
Page {{ searchForm . pagination . currentPage }}/{{ searchForm . pagination . lastPage }}

{{ searchForm . message }}

control_structure code examples

Php arrays and loops

PHP Arrays and loops demonstrates how to use arrays and loops such as for, foreach, and while in PHP. This code example is well commented that makes it easy to understand for any beginner in PHP s...

Diamond shape demo

This simple code example shows how to use for loop to draw a diamond looking graph. Please Netbeans to run this code.

How to use loops in java part 2

This program demonstrates how to use loops in java programming by writing a code that allows the user to compute his or her retirement money.

How to use loops in java part 1

This code example shows how to use the for loop in java programming by writing a simple code to compute the odds of winning a lottery.

Counter controlled repetition

This program demonstrates how to use counter-controlled repetition of a while loop.This means that you determine the number of repetition before running the program.

Triangular asterisks part 1

This simple program that prints a triangle of asterisks that points up,down, left and right demonstrates how to use the for_loop to control the flow of execution in java.