Join Our Email Alerts-Subscribe
Important Note:Login & Check Your Email Inbox and Activate Confirmation Link



Enter Your Email :

Copyright Disclaimer:
Section 107 of the Copyright Act Fair Use Contents .
We are forwarding content link(s) from our website to content website & We are not serving any contents.
Main Source:Google.com.All the Content PDF link(s) is/are obtained from GoogleSearch
for the purpose of Education & Teaching Intention. Not for commercial purpose.
Technicalsymposium.com is not liable/responsible for any copyright issues.

C Programming Source Codes & Study Notes-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();

}