need help badly

can anyone help me for the syntax of printing out the difference of opposing numbers? for example numbers are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. the supposed process is 1-10, 2-9, 3-8, 4-7, 5-6. that is the only syntax left i need to figure out to finish my code. thanks in advance.

Comments

  • Pseudo code:

    for i=1 to 10
    print i, 11-i
  • : can anyone help me for the syntax of printing out the difference of
    : opposing numbers? for example numbers are 1, 2, 3, 4, 5, 6, 7, 8, 9,
    : 10. the supposed process is 1-10, 2-9, 3-8, 4-7, 5-6. that is the
    : only syntax left i need to figure out to finish my code. thanks in
    : advance.
    :
    :Well Lundin seems to have already done it.
Sign In or Register to comment.

Howdy, Stranger!

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

Categories