Re: How to arrange some numbers

Discussion in 'C Programming' started by Mark Bluemel, Mar 15, 2013.

  1. Mark Bluemel

    Mark Bluemel Guest

    On 15/03/2013 16:02, paskali wrote:
    > Hi, a simple question:
    > i want to arrange some int numbers; i want to store them
    > in an array and then print them on the screen.
    >
    > Look below:
    >
    > int numbers[10], arranged[10], i;
    > puts("Insert 10 int numbers");
    > for(i = 0; i <= 9; i ++, scanf("%d", &numbers));
    > ?
    > for(i = 0; i <= 9; i ++, printf("/n%d", arranged));
    >
    > I insert: 10 7 45 678 0 34 6 1 4 3
    > I should see on the screen: 0 1 3 4 6 7 10 34 45 678
    > Simple. Help me to replace question mark.
    >

    http://xkcd.com/1185/
    Mark Bluemel, Mar 15, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Bluemel

    Re: How to arrange some numbers

    Mark Bluemel, Mar 15, 2013, in forum: C Programming
    Replies:
    0
    Views:
    173
    Mark Bluemel
    Mar 15, 2013
  2. Keith Thompson

    Re: How to arrange some numbers

    Keith Thompson, Mar 15, 2013, in forum: C Programming
    Replies:
    4
    Views:
    191
    Malcolm McLean
    Mar 16, 2013
  3. Eric Sosman

    Re: How to arrange some numbers

    Eric Sosman, Mar 15, 2013, in forum: C Programming
    Replies:
    2
    Views:
    193
    osmium
    Mar 15, 2013
  4. BartC

    Re: How to arrange some numbers

    BartC, Mar 15, 2013, in forum: C Programming
    Replies:
    104
    Views:
    1,407
    Tim Rentsch
    Apr 20, 2013
  5. Tim Rentsch

    Re: How to arrange some numbers

    Tim Rentsch, Mar 16, 2013, in forum: C Programming
    Replies:
    0
    Views:
    166
    Tim Rentsch
    Mar 16, 2013
Loading...

Share This Page