Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~218 People Reached
Favorite Forums
Favorite Tags
c x 1
Member Avatar for pratigya

whats wrong with this code it compiles well but gives wrong results code is to arrange the 5 numbers in ascending order [code=c] for (a=0;a<=4;a++) { for (b=a+1;b<=4;b++) { if (num[a]>num[b]) { temp=num[a]; num[a]=num[b]; num[b]=temp; } } } [/code]can anyone tell whats wrong??

Member Avatar for Salem
0
218