Search:

Type: Posts; User: Rob123

Search: Search took 0.01 seconds.

  1. Thread: array issues

    by Rob123
    Replies
    9
    Views
    2,287

    array issue

    Adak,

    Actually it is just plain c. That is what is supposed to be anyway. I am still trying to get a handle on the basics. I bought two books, but it doesn't go into detail about getting input...
  2. Thread: array issues

    by Rob123
    Replies
    9
    Views
    2,287

    This is my current code. The original numbers...

    This is my current code. The original numbers are displaying fine. The ascending numbers are not. Only four of the numbers are being displayed and the number 12 is appearing twice. Any advice?
    ...
  3. Thread: array issues

    by Rob123
    Replies
    9
    Views
    2,287

    array issue

    Adak,
    Would I use a scanf statement for getting the user input? Thank you very much for the reply. It helps a great deal. Being new to this it amazes me on how much knowledge people on this board...
  4. Thread: array issues

    by Rob123
    Replies
    9
    Views
    2,287

    array issues

    I am new to this and am trying to create this for work. The overall project is to have the user input 5 numbers and display them in the original order, ascending order, and descending order. They...
  5. Thread: array issues

    by Rob123
    Replies
    9
    Views
    2,287

    array issues

    Thanks Mats,

    printf ("Enter 5 numbers\n");
    for (i = 0; i < 5; i++)
    scanf ("%d %d %d %d %d", &nums[5]);
    printf ("%d, %d, %d, %d, %d", nums[5]);

    Would this be a better scanf? what about the...
  6. Thread: array issues

    by Rob123
    Replies
    9
    Views
    2,287

    array issues

    I am having issues with getting input numbers from keyboard and putting them into an array and displaying them in original order, ascending order, and descending order. I am stuck on getting the...
  7. Getting keyboard input and put into array and print

    I am learning C programming and am currently on arrays. I need to accept 5 numbers from the keyboard, put numbers into array and print numbers. I am using C and below is what I have so far. This...
Results 1 to 7 of 7