Matriz-3x3.docx

  • Uploaded by: reki
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Matriz-3x3.docx as PDF for free.

More details

  • Words: 81
  • Pages: 2
#include<stdio.h> int i,j,A[3][3],B[3][3],C[3][3]; main() { clrscr(); printf("\t\nEste programa Suma dos matrices de 2x2\n"); printf("\n\tIngresa las entradas de la Matriz A\n\n"); for(i=1;i<=2;i++) { for(j=1;j<=2;j++) { printf("Da un valor para A[%d][%d]: ",i,j); scanf("%i",&A[i][j]); } } clrscr(); printf("\n\tIngresa las entradas de la Matriz B\n\n"); for(i=1;i<=2;i++) { for(j=1;j<=2;j++) { printf("Da un valor para B[%d][%d]: ",i,j); scanf("%i",&B[i][j]); } } clrscr(); printf("\n\t\tEl resultado de la suma de ambas Matices es:\n\n"); for(i=1;i<=2;i++) {

for(j=1;j<=2;j++) { C[i][j]=A[i][j]+B[i][j]; printf("\t\t\t %d",C[i][j]); }

printf("\t\t\t\n"); } printf("\n\n\n\nPresiona una Tecla para salir"); getch(); }

More Documents from "reki"

Ceonograma.docx
April 2020 2
Ceonograma.docx
April 2020 1
Matriz-3x3.docx
April 2020 3