Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

closed what does this mean?

+1 vote
asked Jul 23, 2019 by anonymous 1 flag
closed Jul 24, 2019
  1. if ( n2 > n1) {
  2. int temp = n2;
  3. n2 = n1;
  4. n1 = temp;
closed with the note: Got the answer

3 Answers

0 votes
answered Jul 23, 2019 by anonymous
 
Best answer
I think this swaps variables.
0 votes
answered Jul 23, 2019 by SRIRAM R (140 points)
Swapping is done
0 votes
answered Jul 24, 2019 by ashish tanneeru (180 points)
it is bubble sort i guess
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...