Technicalsymposium.com-Free Email Alerts


Enter Your Email :

Important Note:Login & Check Your Email Inbox and Activate Confirmation Link

Subscribe & Get All Fresher Jobs Information & Study Materials PDF and Projects- Free Download

C Programming Books PDF


C Aptitude Question Papers


Datastructure Programming in C



C Programming & Tech Interview Materials PDF- Free Download

C Program For ORDER OF NUMBERS.

/* N=321 AND RESULT=123*/

void main()

{

int n,t,z=1,i,j,a[20];

clrscr();

printf("Enter any number:");

scanf("%d",&n);

while(n>0)

{

t=n%10;

a[z]=t;

z++;

n=n/10;

}

for(i=1;i<=z;i++)

{

for(j=i+1;j<=z;j++)

{

if(a[i]>a[j])

{

t=a[i];

a[i]=a[j];

a[j]=t;

}

}

}

for(i=2;i<=z;i++)

{

printf("%d",a[i]);

}

getch();

}

Download All C Programming & Study Materials PDF