Home Forums Register FAQ Members List Calendar Search Today's Posts Mark Forums Read Arcade Chat
Go Back   ClubPenguinHQ Forums > General Discussion > Programming > PHP
Reload this Page php challenge
PHP Discussion of PHP scripts belongs here.

php challenge

Reply
 
LinkBack Thread Tools Display Modes
php challenge
Old
  (#1)
Billybob1234 is Offline
Super Moderator
Billybob1234 is a glorious beacon of light
 
Billybob1234's Avatar
 
Posts: 2,651
Join Date: Jan 2008
Location: Wisconsin
Age: 19
Rep Power: 25
  Send a message via AIM to Billybob1234 Send a message via MSN to Billybob1234 Send a message via Yahoo to Billybob1234 Send a message via Skype™ to Billybob1234 
Default php challenge - Monday, June 1st, 2009

This is something to do when you're really bored.

Challenge (easy):
Code:
<?php

$x = 0;

while ($x < 10) {
echo "<p>$x</p>";
$x++;
}

?>
1. Edit the above script so that it echos out the numbers 1 - 100
2. Edit the above script so that it echos out all the even numbers 1 - 100
3. Edit the above script so that it echo out all the numbers 100 - 1

If I find, or think of any more challenges I'll post them here.
(Challenge found on Wikiversity)


http://img196.imageshack.us/img196/769/sig2i.png
  
Reply With Quote
Old
  (#2)
Bollivierke is Offline
Über Member
Bollivierke is on a distinguished road
 
Bollivierke's Avatar
 
Posts: 4,036
Join Date: Jul 2007
Location: Belgium
Age: 15
Rep Power: 35
  Send a message via AIM to Bollivierke Send a message via MSN to Bollivierke  
Default Monday, June 1st, 2009

1.
PHP Code:
<?php

$x 
0;

while (
$x 101) {
echo 
"<p>$x</p>";
$x++;
}

?>
2. I don't feel like coding now.
3. same as 2




Bored.
Send me a PM for a Lockerz.com invite!
  
Reply With Quote
Old
  (#3)
lolabob is Offline
BANNED
lolabob
 
Posts: 1,478
Join Date: Nov 2008
Location: Somewhere up above
Age: 14
Rep Power: 0
  Send a message via MSN to lolabob  
Default Monday, June 1st, 2009

Quote:
Originally Posted by Bollivierke View Post
1.
PHP Code:
<?php
 
$x 
0;
 
while (
$x 101) {
echo 
"<p>$x</p>";
$x++;
}
 
?>
2. I don't feel like coding now.
3. same as 2
same. i wouldnt even do this even if i was bored.


[B][SIGPIC][/SIGPIC][/B]
[B]Visit ps34eva123.wordpress.com for the latest updates on club penguin. visit cpelite.co.cc for the latest club penguin cheats![/B]
  
Reply With Quote
Old
  (#4)
wweice is Offline
Senior Member
wweice
 
wweice's Avatar
 
Posts: 880
Join Date: Feb 2009
Age: 12
Rep Power: 0
  Send a message via AIM to wweice Send a message via MSN to wweice Send a message via Yahoo to wweice  
Default Monday, June 1st, 2009

I don't know what program to use to program php


Steven: May the Lord be with you.

  
Reply With Quote
Old
  (#5)
madaco is Offline
Member
madaco has a little shameless behaviour in the past
 
Posts: 175
Join Date: Mar 2009
Location: on the computer in a house, sometimes i travel tooter parts of the house, like my bed
Rep Power: 0
   
Default Monday, June 1st, 2009

Quote:
Originally Posted by wweice View Post
I don't know what program to use to program php
notepad? thats what i use. (not that i do much with php)
  
Reply With Quote
Old
  (#6)
Billybob1234 is Offline
Super Moderator
Billybob1234 is a glorious beacon of light
 
Billybob1234's Avatar
 
Posts: 2,651
Join Date: Jan 2008
Location: Wisconsin
Age: 19
Rep Power: 25
  Send a message via AIM to Billybob1234 Send a message via MSN to Billybob1234 Send a message via Yahoo to Billybob1234 Send a message via Skype™ to Billybob1234 
Default Monday, June 1st, 2009

Quote:
Originally Posted by Bollivierke View Post
1.
PHP Code:
<?php

$x 
0;

while (
$x 101) {
echo 
"<p>$x</p>";
$x++;
}

?>
2. I don't feel like coding now.
3. same as 2
Shh... don't tell people the answers.


http://img196.imageshack.us/img196/769/sig2i.png
  
Reply With Quote
Old
  (#7)
Mike is Offline
Retired CPHQ Staff
Mike is on a distinguished road
 
Mike's Avatar
 
Posts: 3,821
Join Date: Aug 2007
Rep Power: 34
  Send a message via AIM to Mike  
Default Monday, June 1st, 2009

Quote:
Originally Posted by wweice View Post
I don't know what program to use to program php
  
Reply With Quote
Old
  (#8)
ayame is Offline
BANNED
ayame is on their way to the top
 
Posts: 20
Join Date: Jun 2009
Location: Talking to JUSTIN BIEBER xD
Age: 13
Rep Power: 0
   
Default Tuesday, June 2nd, 2009

Quote:
Originally Posted by Billybob1234 View Post
Shh... don't tell people the answers.
eh,not really pplz dnt really care,Just sayin,xD
  
Reply With Quote
Old
  (#9)
Chase is Offline
BANNED
Chase
 
Posts: 883
Join Date: Feb 2009
Location: Mars, CPHQ
Rep Power: 0
   
Default Tuesday, June 2nd, 2009

Quote:
Originally Posted by Billybob1234 View Post
Shh... don't tell people the answers.
Too late.


[CENTER][URL="http://tinyurl.com/freecoincodes"][SIGPIC][/SIGPIC][/URL]

[COLOR=White][[URL="http://a1chase.com/forum/"]My Forum[/URL]] - [[URL="http://clubwaffle.co.cc"]Club Waffle[/URL]][/COLOR]
[/CENTER]
  
Reply With Quote
Old
  (#10)
Bollivierke is Offline
Über Member
Bollivierke is on a distinguished road
 
Bollivierke's Avatar
 
Posts: 4,036
Join Date: Jul 2007
Location: Belgium
Age: 15
Rep Power: 35
  Send a message via AIM to Bollivierke Send a message via MSN to Bollivierke  
Default Tuesday, June 2nd, 2009

Quote:
Originally Posted by lolabob View Post
same. i wouldnt even do this even if i was bored.
Because you don't even know what php is I guess?
Quote:
Originally Posted by wweice View Post
I don't know what program to use to program php
I'm getting desperate...

Quote:
Originally Posted by Billybob1234 View Post
Shh... don't tell people the answers.
Woops sorry




Bored.
Send me a PM for a Lockerz.com invite!
  
Reply With Quote
Reply

Lower Navigation
Go Back   ClubPenguinHQ Forums > General Discussion > Programming > PHP

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ClubPenguin.com] Wig Challenge RSSbot Club Penguin Blogs 0 Wednesday, April 29th, 2009 02:12pm
[ClubPenguin.com] Penguin Style on Friday (& a challenge)! RSSbot Club Penguin Blogs 0 Monday, April 27th, 2009 01:46pm
challenge meh! darthmaul General Chat 2 Sunday, March 22nd, 2009 06:46pm
Impossible arrow tap challenge. scar 444 General Chat 8 Sunday, October 5th, 2008 12:06pm
Challenge - make your trainer compatible with Ubuntu Vinni3 Macroing & Cheating 5 Monday, June 9th, 2008 05:42pm



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Skin developed by: vBStyles.com
Copyright ©2006 - 2009, RancidKraut Industries