All pastes #674501 Raw Edit

Untitled

public c v1 · immutable
#674501 ·published 2007-08-29 09:34 UTC
rendered paste body
#include <stdio.h>void sortera(int f[10]){        int i,bytt,temp;        do{                bytt=0;                for (i=0;i<9;i++){                        if(f[i]>f[i+1]){                                temp=f[i];                                f[i]=f[i+1];                                f[i]=temp;                                bytt=1;                        }                }        }        while(bytt);}int main(){        int iflt[10]={1,2,3,4,5,6,7,8,9,10};        sortera(iflt);        for (int i=0;i<9;i++){                printf(iflt[i]);        }}