Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- #define N 4
- void lottery(int tab[N][N])
- {
- int i, j;
- srand(time(0));
- printf("[\n");
- for(i=0; i<N; i++){
- for(j=0; j<N; j++){
- tab[i][j] = -10 + rand() % 21;
- printf("%d\t", tab[i][j]);
- }
- }
- printf("\n]\n");
- }
- int main()
- {
- int tab[N][N];
- lottery(tab[N][N]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement