- Joined
- Nov 2, 2014
- Posts
- 1,627
- Reaction
- 295
- Points
- 426
- Age
- 36
I need help sana with this problem. Though madali lang xa kung iintindhin..kasi FOR LOOP lang tapos it connects with ODD and EVEN numbers..kaso hindi ko alam kung pano ko ipapasok ung code. patulong po..
eto ung dapat magenerate na output. ang nagagawa ko palang is eto.
<?php
$x = 'STEP';
$y = 'VALUES';
echo "$x      $y<br>";
for ($x = 1; $x <= 10; $x++) {
if ($x % 2 == 2){
echo $x * 10;
}
echo "$x <br>";
}
?>
hindi ko alam kung saan ko ipapasok ung odd and even numbers.
eto ung dapat magenerate na output. ang nagagawa ko palang is eto.
<?php
$x = 'STEP';
$y = 'VALUES';
echo "$x      $y<br>";
for ($x = 1; $x <= 10; $x++) {
if ($x % 2 == 2){
echo $x * 10;
}
echo "$x <br>";
}
?>
hindi ko alam kung saan ko ipapasok ung odd and even numbers.
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.