Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int b;
- scanf("%d",&b);
- int i,j,a[b],temp;
- for(i=0;i<b;i++)
- scanf("%d",&a[i]);
- for(i=0;i<b;i++)
- {
- for(j=0;j<b;j++)
- {
- if(a[i]<a[j])
- temp=a[i];
- a[i]=a[j];
- temp=a[j];
- }
- printf("%d", a[i]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement