[x]
Ever Worried about Missed / Lost Mobile Phone (or) Mobile Phone Theft ?
Use GinGly to Save your Mobile Numbers and Useful Messages
Limited Time Free Access .Hurry Up !!!
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
.
September 02, 2010, 11:30:46 PM
Home
Search
Team
Calendar
Gallery
Contact
Downloads
GoogleTagged
Login
Register
IT Acumens Discussion Zone
»
Tech News
»
Programming Discussions for Engineers
»
Programming Stuffs in "C"
(Moderators:
VelMurugan
,
thiruvasagamani
) »
ascending order program
« previous
next »
Reply
Print
Register to comment on this topic
Pages: [
1
]
Author
Topic: ascending order program (Read 505 times)
jayanthi mandhalapu
Acumen
Hero Member
Posts: 4985
Acumen
ascending order program
«
on:
August 06, 2009, 09:16:40 PM »
Quote
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
Reply
Print
Register to comment on this topic
Pages: [
1
]
« previous
next »
IT Acumens Discussion Zone
»
Tech News
»
Programming Discussions for Engineers
»
Programming Stuffs in "C"
(Moderators:
VelMurugan
,
thiruvasagamani
) »
ascending order program