Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  fuck
Language: C/C++
Code:
#include <stdio.h>

void swap(int *num1, int *num2){
     int temp;
     temp=*num2;
     *num2=*num1;
     *num1=temp;}
int main(int argc, char *argv[])
{
     int num[100],size;
     scanf("%d",&size);
     for (int i=0;i<size-1;i++){
          for (int j=0;j<size-i-1;j++){
               if (a[j]>a[j+1]){
                    swap(a[j],a[j+1]);}}}
     
     getchar();
     return 0;
}
          
Comments: