diff --git a/02-Sorting array in ascening order.c b/02-Sorting array in ascening order.c index c2864fd..8e652a5 100644 --- a/02-Sorting array in ascening order.c +++ b/02-Sorting array in ascening order.c @@ -1,10 +1,18 @@ //Programme to sort arrray in ascending order + /* + * C program to accept N numbers and arrange them in an ascending order + */ + #include +/* header file is included. */ + void main() { int Size_of_array; + + */ we can also used this as int A[10] this means we have declared the array of integer type and whose size is 10,and the name of the array is A */ printf("Enter the size of array : "); scanf("%d", &Size_of_array); @@ -38,9 +46,11 @@ void main() } printf("\b\b}\nThe sorted Array is in ascending order...\n{"); + + */ when displaying \b would move the cursor one step back, this is why we have used /b here just for formating purposes .*/ for (int i = 0; i < Size_of_array; i++) { printf("%d, ", array[i]); } printf("\b\b}\nSteps take are %d", steps); -} \ No newline at end of file +}