Monday, January 26, 2009

How to display numbers using do while loop in php?

do while statement is one of loop statement in Php that
has a specific condition depending the program flows basically do while loop and while loop
are commonly the same but deffirent format of coding. The same with while loop that do while
statement
will automatically stop if the condition becomes false.
Example:
int x=1;

do {

System.out.println("Number: " + x);
x++;

}while(x<=10);

You can download my example below.

Download File

2 comments:

  1. Eronomyus es un loko

    ReplyDelete
  2. nice but not enough
    please post many-many example of for,while & do-while statements...thanks

    ReplyDelete

 

blogger templates | Make Money Online