Sort a random array of integers in ascending order by using bubble sort algorithm
Answers
Answered by
0
* C program to accept N numbers and arrange them in an ascending order.
int i, j, a, n, number[30];
printf("Enter the value of N \n");
scanf("%d", &n);
printf("Enter the numbers \n");
for (i = 0; i < n; ++i)
scanf("%d", &number[i]);
for (i = 0; i < n; ++i)
Similar questions