diff --git a/matrix.c b/matrix.c new file mode 100644 index 00000000..170d802b --- /dev/null +++ b/matrix.c @@ -0,0 +1,58 @@ +#include +#include +#include + + + +int b; + +int creatematrix(int a) +{ + printf("enter elements\n"); + int array[a][b]; + for(int i=0;i +#include + +int radixsort(int arr[], int size,int length) +{ + int range=10; + int lcount=0; + int ray=size; + int outputarray[ray]; + for(int k=0;k=0;i--) + { + int key=arr[i]; + int digit2=key/(pow(10,lcount)); + int dig2=digit2%10; + int findex=cumalativesum[dig2]; + outputarray[findex-1]=key; + --cumalativesum[dig2]; + } + ++lcount; + + for(int i=0;i