+ 3
Guys please help me with this because I don't really understand the flow of my code. Please help I just want the flow chart
mport java.util.Scanner; // Compiler version JDK 11.0.2 class Dcoder { public static void main(String args[]) { int arr[] = new int [8]; Scanner sc = new Scanner(System.in); System.out.print("Enter 8 Digits (Separate with space):"); for(int i = 0; i < arr.length; i++) { arr[i] = sc.nextInt(); } int temp = 0; for(int i = 0; i < arr.length; i++) { for(int j = i + 1; j < arr.length; j++) { if (arr[i] > arr[j]) { temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; } } } for(int i = 0; i < arr.length; i++){ System.out.print(arr[i] + " "); } } }
10 ответов
+ 3
Nerb I asked you to put it here.
Ok forget it.
Edit: What you have done is a bubble sort.
Kindly search the net for a better diagrammatic representation of it.
https://code.sololearn.com/ciDcyX9bJp2p/?ref=app
+ 3
Open your code and you can see a share symbol on top, copy the link and paste it here in your question.
+ 2
Nerb Now copy paste this code on your code playground, save it and share the link of the code in your post.
It would be easy for the community to rectify the errors.
+ 2
Hehe. THANK YOU VERY MUCH.. I'm just a newbie.. hehe.. sorry
+ 1
I just did post it a while ago.
+ 1
Thanks.. I just posted it on my wall
+ 1
I just really want the flow chart of this program of mine.. please help me 😅😅
0
Yee babi
0
hmm