Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <math.h>
- #define TAILLE_MAX 10
- int main (int argc, char** argv) {
- int int_retour, choix;
- int i, j;
- float **A;
- printf("\n\t\t\t _________________________________");
- printf("\n\t\t\t / /");
- printf("\n\t\t\t / - - / ");
- printf("\n\t\t\t / Symplexe / ");
- printf("\n\t\t\t / - - / ");
- printf("\n\t\t\t/_________________________________/\n\n\n\n\n");
- A=malloc(sizeof(float*)*TAILLE_MAX);
- for(i=0; i!=TAILLE_MAX;i++){
- A[i]=malloc(sizeof(float)*TAILLE_MAX);
- }
- printf("Quelle est la dimenssion choisie inferieur à 10 ?");
- int_retour=scanf("%d", &choix);
- if(int_retour==0) { exit(-1); }
- for(i=0; i!=choix; i++) {
- for(j=0; j!=choix; j++) {
- printf("A[%d][%d]=", i, j );
- int_retour=scanf("%f", &A[i][j]);
- if(int_retour==0) { exit(-1); }
- }
- }
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement