Need a help - PHP cording (for my exercise)
Posted: Fri May 11, 2012 2:03 pm
Hi,
I'm new to this Forum. I need to find the correct answers for following questions.
Exercise:
write down PHP code to print all ODD numbers between 0 and 100.
a) Using for loop
b)Using while loop
Exercise:
Define a PHP function to get a positive integer as input as input parameter and to return the sum of all integers from 1 up to that number
iroshw@live.com
Irosh
I'm new to this Forum. I need to find the correct answers for following questions.
Exercise:
write down PHP code to print all ODD numbers between 0 and 100.
a) Using for loop
b)Using while loop
Exercise:
Define a PHP function to get a positive integer as input as input parameter and to return the sum of all integers from 1 up to that number
iroshw@live.com
Irosh