I was doing this tut but my code's execution shows only this much.... not the sorted part...my code plz...help

#include <stdio.h>
#include <stdlib.h>
#include<string.h>
#include<math.h>
#include<ctype.h>

int main()
{
    int i, temp, swapped;
    int howmany = 10;
    int goals[howmany];
    time_t t;
    srand( (unsigned)  time(&t) );   /*rand() gets initialised for the first time..*/

    for( i=0; i<howmany; i++){
        goals = ( rand()%25) +1;
    }
    printf("original list\n");
    for( i=0; i<howmany; i++){
        printf("%d\n", goals );
   }

   
   while(1)
    swapped = 0;

   for( i=0; i<howmany-1; i++){
    if( goals> goals[i+1] ){
       int temp = goals;
        goals = goals[i+1];
        goals[i+1] = temp;
        swapped = 1;
    }

    if( swapped==0){
        break;
    }
   }

    printf("sorted list\n");
   for( i=0; i<howmany; i++){
    printf("%d\n ", goals);

}
return 0;
}