subject

Hi guys i have a vector with 9 elements vec[20]= 80.59 , 132.40, 81.85, 79.83, 119.96, 111.89, 110.99, 101.21, 118.53 im trying to put them in an anscending orderthats what the console shows me: 80.59 79.83 81.85 101.21 110.99 111.89 118.53 119.96 132.40 for(k=1; k< =i-1; k++) { for(j=k+1; j { if(vec[k]> vec[j]) { aux=vec[k]; vec[k]=vec[j]; vec[j]=aux; } } } up is the formule i used but it is not working. what should i do? i am working in c programming.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:40
Match each feature of e-publishing as an advantage, a disadvantage, a threat, or an opportunity. (choices) increased collaboration digitalized out-of-print versions monopoly over digital formats requirement for a specialized digital device pairs advantage of e-publishing disadvantage of e- opportunity for e- threat to e-
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Scientists have changed the model of the atom as they have gathered new evidence. one of the atomic models is shown below. what experimental evidence led to the development of this atomic model from the one before it? a few of the positive particles aimed at a gold foil seemed to bounce back. the colors of light emitted from heated atoms had very specific energies. experiments with water vapor showed that elements combine in specific proportions. cathode rays were bent in the same way whenever a magnet was brought near them.
Answers: 2
question
Computers and Technology, 24.06.2019 20:30
How is energy expended in active transport
Answers: 1
You know the right answer?
Hi guys i have a vector with 9 elements vec[20]= 80.59 , 132.40, 81.85, 79.83, 119.96, 111.89, 110.9...
Questions
Questions on the website: 13722363