faqts : Problem solving

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

create a for loop that divides 4000by 10increment numbers

Oct 19th, 2006 04:09
Chad Currie, semwezi herbert, http://www.blogvoid.com/category/php-programming/


To divide 4000 by increments of 10
for($i=10; $i <=4000; $i = $i+10){
 $myvalue = 4000 / $i;
}
Each iteration would divide 4000 by incrementing $i by 10, for example 
the first few would be:
4000 / 10
4000 / 20
4000 / 30