Jump to content

laraggg111

New Members
  • Posts

    2
  • Joined

  • Last visited

laraggg111's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well it isn't homework, just a simple challenge that I have no idea how to go about. My biggest issue with programming is not the actual the mathematical aspect, but the syntax and purpose. I feel that I could solve this problem and begin to analyze the mathematical portion if I could define each part of the code. Basically, I am confused about what it is is asking me to do. Which parts define the loop and which part is the itterational value? I appreciate your advice - to elaborate my situation, I am a web developer, proficient with HTML and CSS. I have been becoming more involved with Wordpress and have been doing freelance work creating websites for people. I never got the chance to study PHP in depth to gain an actual understanding of it, so I am simply looking for some advice on where to begin with this challenge. Thank you, Lara
  2. If anyone could give me some advice on this problem that would be great! Rewrite the code below so it would contain only one loop and only one itterational variable would be used. $result = Array(); for ($x = 0; $x < 6; $x++) { for ($y = 0; $y < 6; $y++) { for ($z = 0; $z < 6; $z++) { $result[$x][$y][$z] = $x * $y * $z; } } } Thank you so much
×
×
  • 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.