Reginaldojs

exercicio 8,lista 5

Jul 29th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<time.h>
  4. int main(){
  5.     int i,j,k;
  6.     float matriz[15][10];
  7.     srand(time(NULL));
  8.     printf("\n\n");
  9.     for(j=0;j<10;j++){
  10.        printf("\n");
  11.        for(i=0;i<15;i++){
  12.           printf(" ");
  13.           matriz[i][j]=(rand()%1000)+1000;  
  14.           printf("%.0f",matriz[i][j]);
  15.         }
  16.     }
  17.     printf("\n");
  18.     system ("pause");
  19.     return 0;                
  20. }
Advertisement
Add Comment
Please, Sign In to add comment