Gustavo-Augusto

Lista 03 – exercicio 05

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