URGENT- make it - Programmers Heaven

Howdy, Stranger!

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

Categories

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.