diff --git a/README.md b/README.md index c3e050b..cca8c94 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,39 @@ # Data Structures and Algorithms in C ## Won't count towards prize +#include +void main() +{ + int a[100],n,i,j,minIdx,x; + printf("\n Enter the Number of Elements: "); + scanf("%d",&n); + + printf("\n Enter %d Elements: \n",n); + for(i=0;ia[j]) + minIdx=j; + } + if(minIdx!=i) + { + x=a[i]; + a[i]=a[minIdx]; + a[minIdx]=x; + } + } + + printf("\n The Sorted array in ascending order: "); + for(i=0;i