Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
#define FELD_LAENGE 3
int zahlen_feld[FELD_LAENGE];
int a=42, b=13, c=27;
zahlen_feld[0]=a;
zahlen_feld[1]=b;
zahlen_feld[2]=c;
//bubble sort
int index1, index2, swap;
for (index1 = FELD_LAENGE; index1 > 0; index1--){
for (index2 = 0; index2 < index1; index2++){
if (zahlen_feld[index2] > zahlen_feld[index2 + 1]){
swap = zahlen_feld[index2];
zahlen_feld[index2] = zahlen_feld[index2 + 1];
zahlen_feld[index2 + 1] = swap;
}
}
}
printf("%d,%d,%d",zahlen_feld[0],zahlen_feld[1],zahlen_feld[2]);