Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Re: How to arrange some numbers

Reply
Thread Tools

Re: How to arrange some numbers

 
 
Mark Bluemel
Guest
Posts: n/a
 
      03-15-2013
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[i]));
> ?
> for(i = 0; i <= 9; i ++, printf("/n%d", arranged[i]));
>
> 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/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to arrange some numbers BartC C Programming 104 04-20-2013 10:23 PM
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Re: How to arrange some numbers Keith Thompson C Programming 4 03-16-2013 12:20 PM
Re: How to arrange some numbers Eric Sosman C Programming 2 03-15-2013 08:35 PM
Re: How to arrange some numbers Mark Bluemel C Programming 0 03-15-2013 04:14 PM



Advertisments