1 #include <stdio.h> 2 #include <stdlib.h> 3 4 #define N 10 5 6 int main (void) 7 { 8 int vector[N]; 9 size_t i; 10 11 for(i = 0; i < N; i++) { 12 vector[i] = rand(); 13 printf("%d\n", vector[i]); 14 } 15 return 0; 16 }
9511_workbooksolved exercises from algorithms & programming I (9511) prof. Cardozo |