Login
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Resend Activation Email
|
Forgot your Password?
Join IT Acumens Discussion Zone Free!
Welcome,
Guest
. Please
login
or
register
.
March 18, 2010, 09:08:52 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 314 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
IT Acumens Discussion Zone
«
on:
»
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