import java.util.Scanner;
class BubbleSort {
public static void main(String []args) {
int n, c, d, swap;
Scanner in = new Scanner(System.in);
System.out.println("Input number of integers to sort");
n = in.nextInt();
int array[] = new int[n];
System.out.println("Enter " + n + " integers");
for (c = 0; c array[d+1]) /* For descending order use < */
{
swap = array[d];
array[d] = array[d+1];
array[d+1] = swap;
}
}
}
System.out.println("Sorted list of numbers:");
for (c = 0; c < n; c++)
System.out.println(array[c]);
}
}
NEED VDT FOR THIS PROGRAM
Answers
Answered by
0
Answer:
sooryl having interst on that but l not able answer l follow you back
Answered by
0
just do one simple thing. describe the variables you chose and why you chose it. state it's function in the program. also state their respective data type.
Similar questions
English,
1 month ago
Hindi,
3 months ago
Math,
3 months ago
India Languages,
8 months ago
English,
8 months ago