Created
May 16, 2013 06:47
-
-
Save gokhanyavas/5589834 to your computer and use it in GitHub Desktop.
NxM boyutlu iki matrisin toplamını bulan c programı.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
int main() | |
{ | |
int i,j,n,m; | |
int mata[10][10], matb[10][10], matc[10][10]; | |
printf("Satir Sayisini Giriniz: "); | |
scanf("%d",&n); | |
printf("Sutun Sayisini Giriniz: "); | |
scanf("%d",&m); | |
printf("1.matris: \n"); | |
for(i=1;i<=n;i++) | |
for(j=1;j<=m;j++) | |
{ | |
printf("%d. satir ,%d. sutun elemani",i,j); | |
scanf("%d",&mata[i][j]); | |
} | |
printf("2.matris: \n"); | |
for(i=1;i<=n;i++) | |
for(j=1;j<=m;j++) | |
{ | |
printf("%d. satir,%d. sutun elemani",i,j); | |
scanf("%d",&matb[i][j]); | |
} | |
for(i=1;i<=n;i++) | |
{ | |
for(j=1;j<=m;j++) | |
{ | |
matc[i][j]= mata[i][j]+matb[i][j]; | |
printf(" %d",matc[i][j]); | |
} | |
printf("\n"); | |
} | |
getch(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#include <stdio.h>
int main()
{
printf("****************************1. MATRIS ICIN **************************** \n\n");
}