...

View Full Version : PHP script to generate sequence



satish_j
06-17-2010, 11:17 AM
Can anyone help me with a script that generates the foll:


1
1 2 3
1 2 3 4 5
1 2 3
1

Zoic
06-17-2010, 11:39 AM
haha, looks like a classic for loop homework assignment if you ask me ;) not sure if I should help lol

satish_j
06-17-2010, 11:54 AM
haha, looks like a classic for loop homework assignment if you ask me ;) not sure if I should help lol

Ya,it was asked in an written test..

tomws
06-17-2010, 03:48 PM
From the posting rules (http://www.codingforums.com/rules.htm):

1.5) No homework assignments - Do not post your entire homework assignment and request that other members do it for you. This is considered cheating, and your thread may even be used by your school to prove your guilt. Now, you may ask for advice or help on a specific aspect of your assignment that you're having trouble with. Use common sense as far as what's acceptable in terms of soliciting help with homework assignments.

satish_j
06-17-2010, 07:00 PM
Iam not really asking for readymade code..
All i want is the logic to proceed on it...

tomws
06-17-2010, 07:08 PM
Here's the pseudocode:

print {this line of numbers and spaces}
print {this line of numbers and spaces}
print {this line of numbers and spaces}
print {this line of numbers and spaces}
print {this line of numbers and spaces}

:rolleyes:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum