#include //including all the libraries of cpp using namespace std; int main() { int N; cout<<"Enter the number of elements to sort"<>N; //to enter the number of elements to sort int a[N]; //array to store all the elements cout<<"Start entering the numbers"<>a[i]; } int min,max; //variables to store the max and min values min=max=a[0]; for(int i=0;imax) max=a[i]; } int sort[max-min+1]; //array to count the frequency of all elements for(int i=min;i<=max;i++) //initialising all frequencies to zero { sort[i]=0; } for(int i=0;i