Attribution Non-Commercial (BY-NC)

2 views

Attribution Non-Commercial (BY-NC)

- Copy Pasta
- MHTCET Tricks
- Awk
- Starting and Stopping Oracle 10g
- Post Processor Configuration Guide
- C Programes
- C pro Examble
- Mathematics II Jun2003 or 210156
- 12thCommerce Stream
- Mat Lab Tutorial Part 1
- New Text Document
- 2nd ass
- C Int. Q&A
- 1620130109_ftp
- 04Overview_2_0
- jlhhValue Based Questions Class-12
- Ch09_MatrixAlgebra
- 0103
- Lecture 1510
- Matrix Basics

You are on page 1of 2

PROGRAM DEFINITION:Write a program to Prinf Subtraction Of Matrix.

*/

#include<stdio.h>

#include<conio.h>

{

int i,j;

for(i=0;i<r;i++)

{

for(j=0;j<c;j++)

{

printf("Enter Value [%d][%d]\t",i,j);

scanf("%d",&a[i][j]);

}

printf("\n");

}

}

{

int i,j;

for(i=0;i<r;i++)

{

for(j=0;j<c;j++)

{

printf("%d\t",a[i][j]);

fprintf(fp,"%d\t",a[i][j]);

}

printf("\n");

fprintf(fp,"\n");

}

}

{

int i,j;

for(i=0;i<r;i++)

{

for(j=0;j<c;j++)

{

sub[i][j]=a[i][j]-b[i][j];

}

}

}

int main()

{

int i,r,c,a[10][10],b[10][10],sub[10][10];

FILE *fp;

clrscr();

fp=fopen("Z:\\subtractionarray.txt","w");

if(fp==NULL)

{

printf("File Could Not Open");

exit (0);

}

printf("Enter Size Of Row::");

scanf("%d",&r);

printf("Enter Size Of Column::");

scanf("%d",&c);

printf("\nArray One::\n\n");

fprintf(fp,"\nArray One\n\n");

read_array(a,r,c);

display_array(a,r,c,fp);

printf("\nArray Two::\n\n");

fprintf(fp,"\nArray Two\n\n");

read_array(b,r,c);

display_array(b,r,c,fp);

subtraction(a,b,sub,r,c);

printf("\n\nSubtraction Of Matrix");

fprintf(fp,"\n\nSubtraction Of Matrix");

printf("\n");

fprintf(fp,"\n");

display_array(sub,r,c,fp);

getch();

return 0;

}

/* OUTPUT:

Enter Size Of Row::2

Enter Size Of Column::2

Array One::

Enter Value [0][0] 1

Enter Value [0][1] 2

Enter Value [1][0] 3

Enter Value [1][1] 4

1 2

3 4

Array Two::

Enter Value [0][0] 2

Enter Value [0][1] 1

Enter Value [1][0] 4

Enter Value [1][1] 3

2 1

4 3

Subtraction Of Matrix

-1 1

-1 1

*/

- Copy PastaUploaded byStefan
- MHTCET TricksUploaded bynichas
- AwkUploaded byhitesh
- Starting and Stopping Oracle 10gUploaded byapi-3850322
- Post Processor Configuration GuideUploaded byDick Man
- C ProgramesUploaded bynjpatel9
- C pro ExambleUploaded bygurulenin
- Mathematics II Jun2003 or 210156Uploaded byNizam Institute of Engineering and Technology Library
- 12thCommerce StreamUploaded bySheikh Oubaid
- Mat Lab Tutorial Part 1Uploaded byHoria Stefan Matei
- New Text DocumentUploaded bysaiias_ramuk
- 2nd assUploaded bygumshoot
- C Int. Q&AUploaded bysriharshakalidasu
- 1620130109_ftpUploaded byGurusubramaniam Sankaran
- 04Overview_2_0Uploaded byPrawan Singh
- jlhhValue Based Questions Class-12Uploaded byjitender8
- Ch09_MatrixAlgebraUploaded byM.Siva Nagi Reddy
- 0103Uploaded byGicu
- Lecture 1510Uploaded bynils4586
- Matrix BasicsUploaded byMirika Shirin
- Physics Syl Lab UsUploaded byABHINAV KUMAR SHUKLA
- CSolvedprogramsUploaded byhima vamsi
- String.pptUploaded byHerp
- Mafiadoc.com Values Based Questions Mathematics Xii Laxmi Publi 59fb0f4d1723dd83324209d2Uploaded byRoy Andrew Garcia
- Conditional StatementsUploaded byStep
- ProgramsUploaded byVarun
- SMathStudioGraphs2&3DExamplesUploaded byapmapm
- unit 5.docxUploaded byShanmuka Sreenivas
- DAA pracs5-12.docxUploaded byDave Karn
- SOFTWARETESTINGUploaded byDarshan Bc

- Post FixUploaded byvarun_aggarwal1987
- pyramidUploaded byvarun_aggarwal1987
- week_dayUploaded byvarun_aggarwal1987
- vowel_fiUploaded byvarun_aggarwal1987
- vowel_coUploaded byvarun_aggarwal1987
- v_28Uploaded byvarun_aggarwal1987
- v_21Uploaded byvarun_aggarwal1987
- v_9Uploaded byvarun_aggarwal1987
- v_8Uploaded byvarun_aggarwal1987
- v_6Uploaded byvarun_aggarwal1987
- v_5Uploaded byvarun_aggarwal1987
- v_4Uploaded byvarun_aggarwal1987
- v_3_2Uploaded byvarun_aggarwal1987
- v_3_1Uploaded byvarun_aggarwal1987
- v_2_iiiUploaded byvarun_aggarwal1987
- v_2_iiUploaded byvarun_aggarwal1987
- v_2_iUploaded byvarun_aggarwal1987
- v_2_3Uploaded byvarun_aggarwal1987
- v_2_2Uploaded byvarun_aggarwal1987
- uptolowUploaded byvarun_aggarwal1987
- up_lowUploaded byvarun_aggarwal1987
- unitmatrUploaded byvarun_aggarwal1987
- triangleUploaded byvarun_aggarwal1987
- tmatrixUploaded byvarun_aggarwal1987
- switchmoUploaded byvarun_aggarwal1987
- switchdaUploaded byvarun_aggarwal1987
- switchUploaded byvarun_aggarwal1987
- switchcaUploaded byvarun_aggarwal1987
- sumprimeUploaded byvarun_aggarwal1987
- sumof3Uploaded byvarun_aggarwal1987

- Master's ThesisUploaded byJohn N Tammy Beasley
- PCA pptUploaded byHabib Rehman
- CE206_System of Linear EquationsUploaded bySatyajit Mojumder
- MAUploaded byLuis Correia
- B.ScMath (1)Uploaded byCH M Ahmed
- 1 6 Lines Planes IIUploaded byStelios Kondos
- Similarity TransofmationUploaded bysubbu205
- Applications in Ch3Uploaded bykalite123
- MANNA - Marshall BrainUploaded byelz0rr0
- Revisiting Clifford Algebra and SpinorsUploaded byidownloadbooksforstu
- Eigenvalue Inequalities for Matrix ProductsUploaded bygzip
- RD EX1 Kinematics SolutionUploaded bydanitranoster8512
- Chapter 2 Section 9 The Hill Cipher and Matrices.pptxUploaded bykalai_7
- Mecanum Kinematic AnalysisUploaded byshinzow
- 1410.7188v1Uploaded bysvante rauderson
- CodeUploaded byapi-3720556
- 2 SpringsUploaded byMuhammad Fadlan
- Apps 12 Matrices WorksheetUploaded byMeynard Baptista
- S2-17-MATH ZC234 PE ZC235-L3Uploaded bySankar
- Applications of Linear AlgebraUploaded bySolitary ChOcoholic
- Ng Machine Learning NotesUploaded byhc87
- HWsheet 1-4 Linear AlgebraUploaded byMaesha Armeen
- NFEM.ch11.SlidesUploaded byAnonymous 37PvyXC
- lec2Uploaded byrobertobaggio9
- Abdi-EVD2007-pretty.pdfUploaded byali
- 13w02Uploaded byTom Davis
- simplex1Uploaded bynekougolo3064
- Gibbs. W. - Vector Analysis (1901).pdfUploaded byJIMMY
- UbD LessonUploaded bycurtisgay81
- Pdm 82 Aligned My36nUploaded byArbaz

## Much more than documents.

Discover everything Scribd has to offer, including books and audiobooks from major publishers.

Cancel anytime.