Write a program to initialize 10 numbers of 1D array and sort array in ascending
order
Answers
Answered by
4
Answer:
The program output is also shown below.
* 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)
Answered by
0
Answer:
The program output is also shown below.
* 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)
Explanation:
Hope it's helpful
Similar questions