Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

URGENT- make it

lajevardilajevardi Posts: 42Member
Hi guys;
How can i make it?

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

_:blank

Comments

  • zibadianzibadian Posts: 6,349Member
    : 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:
    [code]
    for i := N downto 1 do
    begin
    for j := i to N do
    write(j, ' ');
    writeln;
    end;
    [/code]
    You write the second half.
  • lajevardilajevardi Posts: 42Member
    [b][red]This message was edited by lajevardi at 2006-5-5 23:27:45[/red][/b][hr]
    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*/


  • zibadianzibadian Posts: 6,349Member
    : [b][red]This message was edited by lajevardi at 2006-5-5 23:27:45[/red][/b][hr]
    : 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*/
    :
    :
    :
    [code]
    for i := N downto 1 do
    begin
    for j := 1 to i do
    write(' ');
    for j := i to N do
    write(j, ' ');
    writeln;
    end;
    [/code]
  • lajevardilajevardi Posts: 42Member
    thank you so much,
    my brain was hanged completely, i can't believe that i couldn't do that.
    really thanks;
Sign In or Register to comment.