Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #define n 10
- #define m 15
- int main(void)
- {
- int i,j,M[m][n];
- for (i=0;i<n;i++)
- {
- for (j=0;j<m;j++)
- {
- M[i][j]=rand() % (n*m); // quantidade de caracteres
- printf("%d ",M[i][j]);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement