QUOTE(no2pencil @ 1 Jul, 2008 - 09:33 PM)

Would you like fries with that? This isn't McDonald's of Coding lol...
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.
Please post like this:

Thank you for helping us helping you.
why program not enter 1000000
CODE
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(int argc, char *argv[])
{
int i,MAX;
scanf("%d",&MAX);
int number[MAX];
/* initialize random seed: */
srand ( time(NULL) );
for (i = 0;i<MAX;i++){
number[i]=rand();
}
printf("\n\n");
int count,min,j,k;
for(count=0;count<MAX-1;count++)
{
min = count;
for(j=count+1;j<MAX;j++){
if(number[min]>number[j])
min = j;
}
if(min!=count)
{
k = number[count];
number[count]=number[min];
number[min]=k;
}
}
for(i=0;i<MAX;i++){
printf("%d\n",number[i]);
}
system("PAUSE");
return 0;
}