Advertisement
Guest User

test

a guest
Dec 20th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.88 KB | None | 0 0
  1.     #include <stdlib.h>
  2.     #include <stdio.h>
  3.     #include <string.h>
  4.     #include <math.h>
  5.  
  6. #define TAILLE_MAX 10
  7.  
  8.      int main (int argc, char** argv) {
  9.    
  10.      int i, j;
  11.      float **A;
  12.  
  13.     printf("\n\t\t\t     _________________________________");
  14.     printf("\n\t\t\t    /                                 /");
  15.     printf("\n\t\t\t   /      -                    -     / ");
  16.     printf("\n\t\t\t  /             Symplexe            /  ");
  17.     printf("\n\t\t\t /      -                    -     /   ");
  18.     printf("\n\t\t\t/_________________________________/\n\n\n\n\n");
  19.    
  20.  
  21.     A=malloc(sizeof(float*)*TAILLE_MAX);
  22.          
  23.     for(i=0; i!=TAILLE_MAX;i++){
  24.             A[i]=malloc(sizeof(float)*TAILLE_MAX);
  25.     }
  26.  
  27. for(i=0; i!=TAILLE_MAX; i++) {
  28.     for(j=0; j!=TAILLE_MAX; j++) {
  29.         printf("A[%d][%d]=", i, j );
  30.         scanf("%f", &A[i][j]);
  31.     }
  32. }
  33.  
  34.     return(0);
  35.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement