Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- int main(int argc, char *argv[])
- {
- int i,k,m,n;
- int val1,valor;
- int A1[32][32],A2[32][32];
- srand(time(NULL));
- ///////
- for(i=0;i<32;i++)
- for(k=0;k<32;k++)
- A1[i][k]=rand()%256;
- printf("%d\n",A1[i][k]);
- /////////
- for(m=0;m<32;m++)
- for(n=0;n<32;n++)
- A2[m][n]=rand()%256;
- printf("%d\n",A2[m][n]);
- /////////
- printf("Ingrese un valor entero entre 0 y 254: %d");
- scanf("%d", &val1);
- for(i=0;i<32;i++){
- for(k=0;i<32;i++){
- A1[i][k]=valor;
- if(val1-1<valor<val1+1)
- printf("Buscando el valor, entonces este es: %d",valor);
- }}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement