+ 2
C program
https://drive.google.com/drive/folders/1-0u-vqFdihzBSeyA8t8NV8Bf2SoeF_c3 Can you write c program?
13 Respostas
+ 1
The link requires a login.
Please describe the problem you need help with and show the code that you have attempted so far.
+ 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
+ 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
+ 1
What have you put together so far?
+ 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!
+ 1
Install code blocks for windows, you don't need to have Linux to code in C
+ 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.
+ 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.
+ 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.
0
Brian check it again please
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
0
Hallo â€
0
Sajid Malaysia đČđŸ