Pascal

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

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
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

Report
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.
Report
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,
your code output:

4
3 4
2 3 4
1 2 3 4

/*i'm so tired and confused*/


Report
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,
: your code output:
:
: 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;

Report
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
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.