piriwin84 Posted December 10, 2010 Report Share Posted December 10, 2010 ola necesito si me pueden ayudar a terminar mi codigo o al menos corregirme es lo que llevo en este momento es urgente #include<stdio.h> #include<conio.h> #include<math.h> #define max 2 int n, fil, col, x,y,op; int A[4][4]; int B[4][4]; double matriz [2] [2]; void main() do { printf("ingresar 2 matrices"); printf("suma de matrices"); printf("lista de datos del archivo"); printf("salir"); switch(op); { case 1: { clrsc(); gotoxy(5,3);printf("Ingresar Matriz A :"); for(x=1;x<=fil;x++) for(y=1;y<=col;y++) { gotoxy(3*y+5,3*x+5);scanf("%d",&A[x][y]); } gotoxy(35,3); printf("Ingresar Matriz B : "); for(x=1;x<=fil;x++) for(y=1;y<=col;y++) { gotoxy(3*y+35,3*x+5); scanf("%d",&B[x][y]); } gotoxy(5,22); printf("SUMA de A + B"); for(x=1;x<=fil;x++) for(y=1;y<=col;y++) { gotoxy(4*y+5,3*x+25); C[x][y] = A[x][y] + B[x][y] ; printf("%d", C[x][y]); } getch(); break; } } while (op!0); } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now