All pastes #196640 Raw Edit

Unnamed

public cpp v1 · immutable
·published 2006-10-10 19:36 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");int temp;int izhod = 0;i = 0;while ( izhod == 0 ){      while ( i<7 )      {            izhod = 1;            if ( a[i] < a[i+1] )            {                 temp = a[i];                 a[i] = a[i+1];                 a[i+1] = temp;                 printf("%i", a[i]);                 izhod = 0;            }                        i++;      }            }      printf("\nm\n");int e = 0;while (e<=7){      printf("...");      printf("%i", a[i]);      e++;}                                  system("PAUSE");}