neo Posted March 3, 2006 Report Share Posted March 3, 2006 taatad cikls; for($i=0.9; $i>=4.5; $i++) { echo $i."<br>"; } Rezultaataa sanaak 0.9 1.9 2.9 3.9 bet man vajag lai solis buutu pa 0.1. Taatad vajadzeetu: 0.9 1.0 1.1 1.2 utt liidz 4.5 Kaa to var panaakt? Link to comment Share on other sites More sharing options...
Vebers Posted March 3, 2006 Report Share Posted March 3, 2006 for($i=0.9; $i>=4.5; $i=$i+0.1) ? Link to comment Share on other sites More sharing options...
bubu Posted March 3, 2006 Report Share Posted March 3, 2006 $i>=4.5 ?? wtf? for($i=0.9; $i<=4.5; $i+=0.1) Link to comment Share on other sites More sharing options...
neo Posted March 3, 2006 Author Report Share Posted March 3, 2006 Paldies! Link to comment Share on other sites More sharing options...
Venom Posted March 3, 2006 Report Share Posted March 3, 2006 $i=0.9; while($i<=4.5) { $i+=.1; ... } tas pats īsāk while(($i+=.1)<=4.5) { ... } Link to comment Share on other sites More sharing options...
Recommended Posts