faqts : Computers : Programming : Languages : PHP

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

1 of 2 people (50%) answered Yes
Recently 1 of 2 people (50%) answered Yes

Entry

How would you create a while statement that prints every odd number between 1 and 49?

Mar 22nd, 2008 21:27
ha mo, Himanshu Jain,


num$ =1;
while ( $num <= 49)
          {
          print $num<BR>\n;
          $num +=2:
          }
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com