nikolas_serafini

Lista 3 - Exercício 4

Jun 11th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4.  
  5. int main()
  6. {
  7.     int i,val;
  8.    
  9.     srand(time(NULL));
  10.  
  11.     for (i = 0; i < 10; i++)
  12.     {
  13.         val = rand();
  14.         printf("%d\n",val);
  15.     }
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment