13th Feb 2022, 6:37 PM
Laziza IOS
Laziza IOS - avatar
13 ответов
+ 1
The link requires a login. Please describe the problem you need help with and show the code that you have attempted so far.
13th Feb 2022, 7:01 PM
Brian
Brian - avatar
+ 2
HungryTradie it is also easy for me to copy and past. But sololearn didnt allowed to me. No need to joke and say like that if you dont know why i post like that
14th Feb 2022, 10:16 AM
Laziza IOS
Laziza IOS - avatar
+ 1
Laziza Khasanova the file is publicly visible now. I encourage you to try writing small portions of the code and test all along the way. In small steps: Start with printing the prompt string. Then get the input for number of values, n. Print the prompt for the array values. Declare an int array of n elements. Add a loop that repeats n times. Inside the loop add a prompt for array values. To sort the array values, there are many ways. It would be possible to sort them during input by using an insertion sort. You can find sorting algorithms easily by searching Sololearn Community or Code sections, or the web. You may use the C library qsort() function, which is hard to figure out at first, but easier than debugging your own sort function. After you have written your code post it here let us know if you need any specific help. Some reference material: https://www.educba.com/sorting-in-c/ https://www.tutorialspoint.com/c_standard_library/c_function_qsort.htm
13th Feb 2022, 7:59 PM
Brian
Brian - avatar
+ 1
What have you put together so far?
13th Feb 2022, 9:50 PM
William Owens
William Owens - avatar
+ 1
Brian can you write it please. I dont have c knowledge. It was given by linux teacher and i am having problems with it. If possible it would be helpful it you write me that program. Thank you in advance!
14th Feb 2022, 10:18 AM
Laziza IOS
Laziza IOS - avatar
+ 1
Install code blocks for windows, you don't need to have Linux to code in C
14th Feb 2022, 12:09 PM
William Owens
William Owens - avatar
+ 1
Laziza Khasanova I would enjoy writing the program, but it would defeat the purpose of the assignment. It is given to you for you to learn how to do it. How will you learn if you don't make any effort? Maybe it is time for you to re-evaluate why you are in school.
14th Feb 2022, 2:58 PM
Brian
Brian - avatar
+ 1
Laziza Khasanova I hope to give you a Iittle encouragement. Often it is easier to modify an existing program than to write it from the beginning. Look at the links that I posted earlier. All the examples are very similar to your assignment. Take one. Run it. Modify it. See if you can make the adjustments needed to match the assignment.
14th Feb 2022, 9:34 PM
Brian
Brian - avatar
+ 1
Brian So very true, just learning it is good to look at code from others and modify it to.meet your needs. This helps you understand the "blocks" of code and what small changes will do.
15th Feb 2022, 1:21 AM
William Owens
William Owens - avatar
0
Brian check it again please
13th Feb 2022, 7:26 PM
Laziza IOS
Laziza IOS - avatar
0
Check the answer to the same question here: https://youtu.be/dQw4w9WgXcQ EDIT: (did anyone like my joke??) That is a crappy way to ask for help. Next time you could cut+paste the question into SoloLearn, link your attempt/code, etc etc. https://www.sololearn.com/discuss/1316935/?ref=app
13th Feb 2022, 9:14 PM
HungryTradie
HungryTradie - avatar
0
Hallo ❤
15th Feb 2022, 10:50 AM
Sajid Husnain
Sajid Husnain - avatar
0
Sajid Malaysia 🇲🇾
15th Feb 2022, 10:50 AM
Sajid Husnain
Sajid Husnain - avatar