All pastes #196692 Raw Edit

Someone

public cpp v1 · immutable
·published 2006-10-10 20:25 UTC
rendered paste body
#include <stdio.h>#include <stdlib.h>main(){int a[7];int i=0;while (i<=7){      printf("...");      a[i] = i;      printf("%i", a[i]);      i++;} // shrani vrednosti 0 1 2 3 4 5 6 7  v array a[7] ki ima osem mest..printf("\n-\n");a[0] = 12;a[4] = 1337;a[7] = 1555;int temp;int izhod = 0;i = 0;while ( izhod == 0 ){      while ( i<7 )      {                        if ( a[i] < a[i+1] )            {                                  printf("---%i---", a[i]);                 temp = a[i];                 a[i] = a[i+1];                 a[i+1] = temp;                 printf("%i", a[i]);                 i = -1;            }            izhod = 1;            i++;      }            }      printf("\n====\n");int e = 0;while (e<=7){      printf("...");      printf("%i", a[e]);      e++;}      printf("\n====\n");                                 system("PAUSE");}