write a program to input an integer array of n size . Sort the array in ascending order using selection sort method . Then input another number from user and replace all the number less than that inputted number by their reverse.
Answers
Answered by
2
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)
Similar questions