fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int gg[10]={1,3,5,7,9,2,4,6,8,0};
  6. int e,i,a,n,x=0;
  7. n= sizeof(gg)/sizeof(gg[0]);
  8. for(e=0;e<n;e++){
  9. for(i=0;i<n;i++){
  10. if(gg[e]>gg[i]){
  11. x=gg[e];
  12. gg[e]=gg[i];
  13. gg[i]=x;
  14. }
  15. }
  16. }
  17. printf("%d",gg[0]);
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
Standard output is empty