Results 1 to 2 of 2

Thread: how? check

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    1

    Question how? check

    how can i print these numbers in this order?
    123456
    12345
    1234
    123
    12
    1

    my answer
    for i = 6 to 1 step -1
    for j = 1 to i
    print j;
    next j
    print
    next i


    plz check my answer anf if there any wrong tell me and write the right answer?

  2. #2
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: how? check

    Quote Originally Posted by just_info
    how can i print these numbers in this order?
    123456
    12345
    1234
    123
    12
    1

    my answer
    for i = 6 to 1 step -1
    for j = 1 to i
    print j;
    next j
    print
    next i


    plz check my answer anf if there any wrong tell me and write the right answer?
    It's ok, I assume you didn't have the chance to check by yourself?
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width