## Pascal

Moderators: None (Apply to moderate this forum)
Number of posts: 14016

This Forum Only

URGENT- make it Posted by lajevardi on 5 May 2006 at 10:46 PM
Hi guys;
How can i make it?

N=4
_ _ _ 4
_ 2 3 4
1 2 3 4
1 2 _ _
1 _ _ _

_:blank

Re: URGENT- make it Posted by zibadian on 5 May 2006 at 11:09 PM
: Hi guys;
: How can i make it?
:
: N=4
: _ _ _ 4
: _ 2 3 4
: 1 2 3 4
: 1 2 _ _
: 1 _ _ _
:
: _:blank
:
:
Here's the first half:
```for i := N downto 1 do
begin
for j := i to N do
write(j, ' ');
writeln;
end;
```

You write the second half.
Re: URGENT- make it Posted by lajevardi on 5 May 2006 at 11:23 PM
This message was edited by lajevardi at 2006-5-5 23:27:45

thanks thanks thanks..
buti think there's an extra line,

4
3 4
2 3 4
1 2 3 4

/*i'm so tired and confused*/

Re: URGENT- make it Posted by zibadian on 6 May 2006 at 2:16 AM
: This message was edited by lajevardi at 2006-5-5 23:27:45

: thanks thanks thanks..
: buti think there's an extra line,
:
: 4
: 3 4
: 2 3 4
: 1 2 3 4
:
: /*i'm so tired and confused*/
:
:
:
```for i := N downto 1 do
begin
for j := 1 to i do
write('   ');
for j := i to N do
write(j, ' ');
writeln;
end;
```

Re: URGENT- make it Posted by lajevardi on 6 May 2006 at 2:31 AM
thank you so much,
my brain was hanged completely, i can't believe that i couldn't do that.
really thanks;

## Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic