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...
Type: Posts; User: Rob123
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...
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?
...
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...
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...
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...
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...
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...