Do While Loop Learn Programming Do While Loop Example Code Scripts Tutorial
Description: Do While Loop Learn Programming Do While Loop Example Code Scripts Tutorial
Tags: do ,while ,loop ,learn ,programming ,do ,while ,loop ,example ,code ,scripts ,tutorial
this short tutorial is to show you how you can display information or data with the DO WHILE loop. I will be using php for this. for this sample code to work, you will need php on your website. if you don't have php already, you can visit our friends at webune.com and signup for a php web hosting plan. They have excellent service and i always recommend them to all my customers.
Now there a is good example of a do while loop:
<?php
# This sample code by Wallpaperama.com
# This is a loop that displays a list of numbers 1 through 10
$number_of_loops = 10;
$counter = 1;
do
{
echo $counter.'<br>';
# Increment $counter by 1
$counter ++;
}
# NOTES: The next line checks to see if the number of loops is greater than or equal to ten,
# if its not, then it continues with the loop until the number of loops is more than 10
while ($counter <= $number_of_loops);
?>
if you want to see how this code looks, open your text editor like notepad in Windows and save the file as loop.php, then upload to your PHP website and open it with your browser, when you open the loop.php file with your browser, it will display like this:
1
2
3
4
5
6
7
8
9
10
Remeber, if you need PHP web hosting, visit our friends at www.webune.com
jocel Tue Feb 07, 2012 please help me to create a code using for loop...
sarika Thu Nov 24, 2011 that's good...
radie Tue Aug 23, 2011 uhm!! please help making a program using while do loop thanks!
chuvanes Wed Dec 01, 2010 ,,,study the lesson brother..
sheen Sun Oct 17, 2010 kindly help me to solve this problem>>
ASAP!!!
1.white a program to list the numbers from 0 to 25, their squares, and third power. the output should be in a three column. do while loop)
2. white a program that reads in a number n and then outputs the sum of the squares of the numbers from 1 to n. if the input is 3, for examples, the output should be 14. the output should ask if the user wishes to repeat the intire process or not. use at list two different loop statement.
3. white a progam that will display all even numbers from 2 to 28 and compute the sum of all even numbers.
pleas help me>>>>>asp>.thx
lyndon Fri Oct 15, 2010 kindly help me to solve this problem>>
ASAP!!!
1.white a program to list the numbers from 0 to 25, their squares, and third power. the output should be in a three column. do while loop)
2. white a program that reads in a number n and then outputs the sum of the squares of the numbers from 1 to n. if the input is 3, for examples, the output should be 14. the output should ask if the user wishes to repeat the intire process or not. use at list two different loop statement.
3. white a progam that will display all even numbers from 2 to 28 and compute the sum of all even numbers.
pleas help me>>>>>asp>.thx
avaughn Fri Oct 01, 2010 can somebody help me on how to make a program using java..
RedHand Wed Aug 25, 2010 You should post also the Interface!!!
Thank You!!!
elena Mon Aug 16, 2010 please help me make a do while problem, pseudocode, flowchart and defining diagram....any1 please help me.....
keempe Tue Feb 16, 2010 please help me how to fix my face.....XD can you please share your face to me...please....(. ._)
khemoh Tue Feb 16, 2010 hi...please help me how to display a while loop to translate it in do while loop....hmm thanks...
michael Tue Jan 19, 2010 help me make a do while loop program of c and translate to c .
rachel Wed Dec 16, 2009 make a program that will display the word computer on the screen using loop statement..like this..
c
co
com
comp much!!!!
gege Fri Nov 27, 2009 .guday.,
pls help me to ceate code using do-while loop statement.,
tnx
egitues Wed Nov 11, 2009 write a programe to accept the 4 no to use do loop or while loop
jhas Wed Oct 21, 2009 hi there,,,will you please give me more examples of do while looping more as you can,,thanks a lot
Clang Mon Oct 05, 2009 please help me to do a java while sample, for statement, do statement and do while statement
tyrone Wed Sep 30, 2009 please,help me create a program using any of the iterative statements in this problem:
y.input 3 numbers and determine the even and the odd number among the three.
benhur Mon Sep 14, 2009 please help me to create code using while loop. this is the problem.
create a program that enable the user to input 4 numbers using while loop and then display the sum of even and odd number and count the number of even and odd number inputted by the user...
eugene Thu Sep 10, 2009 please help me how to create a program that will determine if the input number is even or odd please......
Thu Sep 10, 2009 help to make a programm
]
cLaui Wed Sep 02, 2009 'isa pa pla....
patulong nman how to create a program with looping
cLaui Wed Sep 02, 2009 huhu...ang hirap! help grabe....ang hirap mag programmm!!
julie Sun Aug 23, 2009 ow common ! cant have any good examples from you guys! hmp! thankx a lot men!
khen Sun Aug 02, 2009 ui help me amn d2 sa for loop statement n2 e2 output
1
333
5555550
robel Tue Mar 24, 2009 please help me to create a program using while loop.with a flowchart and source code. this is the problem
create a program that enable the user to input 3 numbers and count the number of inputted odd and even numbers.
help me..i need this tomorrow march z3.
thank you! god bless!
gianlyn Sun Mar 08, 2009 please help me to create a program using do-while loop that the will ask the user tol input y4 numbers and that will count the even number....please help me...thanks,,
looping Thu Mar 05, 2009 show me a loop even numbers
krystal Tue Mar 03, 2009 pls help me find an example of do while loop statement
ERWIN Tue Feb 10, 2009 pls help me:in sample code loops and statement
marlon Fri Jan 16, 2009 i was looking for sample code for html(looping an odd number but this will help,
thanks
Agnes Mon Jan 05, 2009 example for do while loop
evan Wed Dec 03, 2008 please help me about this..please give me a code..do while:
1
a
2
a
a
recel Sat Oct 04, 2008 please help me to create code using while loop. this is the problem.
create a program that enable the user to input 4 numbers using while loop and then display the sum of even and odd number and count the number of even and odd number inputted by the user... i need your help guyz before monday
recel Sat Oct 04, 2008 please help me to create code using while loop. this is the problem.
create a program that enable the user to input 4 numbers using while loop and then display the sum of even and odd number and count the number of even and odd number inputted by the user...
Information
Title: Do While Loop Learn Programming Do While Loop Example Code Scripts Tutorial
Info: This Post Has Been Viewed 0 Times Since
Date: Sat Mar 31, 2007
Author
unix Received 37 Replies #1013
Related Content
Related Pages
Related Sites
Add Your Website
Share
URL:

Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
Embed:

To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
BBCODE::

BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums