Jump to content

hereisgoes

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by hereisgoes

  1. Hi guys. So I have a little coding down but I am stuck on this problem: /* Using only a array and a foreach loop, write a program that prints the days of the week *\ $days = array { 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday', }; //This is where I need help with the code echo "$day \r\n"; ?> Thanks in advance!
  2. Awesome! Thank you so much, is there a way to mark this as solved.
  3. Hi guys. I am new here but have been following the board for about a month. I will try to contribute as much as possible. I was given a problem, and need some help out with it. Most of you will probably find it pretty simple. Here is what I have: ?> //Rewrite the while loop using a for loop. for echo "8 times $num is: " . ($num*. "<br/>" } /* For the output I need: 8 times 1 is:8 8 times 2 is:16 8 times 3 is: 24 8 times 4 is:32 8 times 5 is:40 8 times 6 is: 48 8 times 7 is: 56 8 times 8 is:64 8 times 9 is: 72 8 times 10 is: 80 */ ?> So basically I need to fill in that missing code(rewrite the while loop using a for loop) Thank you so much in advance!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.