Welcome,
Guest
. Please
login
or
register
.
March 11, 2010, 06:27:59 PM
Home
Search
Calendar
Gallery
Downloads
Login
Register
IT Acumens Discussion Zone
»
Tech News
»
Programming Discussions for Engineers
»
Programming Stuffs in "C"
(Moderators:
VelMurugan
,
thiruvasagamani
) »
ascending order program
« previous
next »
Print
Pages: [
1
]
Author
Topic: ascending order program (Read 310 times)
jayanthi mandhalapu
Acumen
Hero Member
Posts: 4985
Acumen
ascending order program
«
on:
August 06, 2009, 09:16:40 PM »
the main concept of the program
for(i=0;i<n;i++)
scanf("%d",&x
);
for(i=0;i<n;i++)
for(j=i+1;j<n;j++)
if(x
>x[j])
{
temp=x
;
x
=x[j];
x[j]=temp;
}
printf("ascending order of given no");
for(i=0;i<n;i++)
printf("%5d",x
);
Logged
Be Happy And Always Remain So
Print
Pages: [
1
]
« previous
next »
IT Acumens Discussion Zone
»
Tech News
»
Programming Discussions for Engineers
»
Programming Stuffs in "C"
(Moderators:
VelMurugan
,
thiruvasagamani
) »
ascending order program