SlideShare a Scribd company logo
1 of 5
REPUBLIC OF THE PHILIPPINES
LAGUNA STATE POLYTECHNIC UNIVERSITY
SINILOAN HOST CAMPUS
SINILOAN LAGUNA
SUBMITTED BY :
SOFIA D. PALAWAN
KARA CRYSTAL R. PASCASIO
SUBMITTED TO :
MS AILEEN MAGTIBAY
AIT 2-1
ANALYSIS FOR MATRIX ADDITION
PROGRAMMING
is the art of making a computer do what you want it to do.
At the very simplest level it consists of issuing a sequence of commands to a computer to
achieve an objective.
A vocabulary and set of grammatical rules for instructing a computer to perform specific
tasks. The term programming language usually refers to high-level languages, such as
BASIC, C, C++, COBOL, FORTRAN, Ada, and Pascal. Each language has a unique set
of keywords (words that it understands) and a special syntax for organizing program
instructions. Computer Programming
PURPOSE OF PROGRAMMING FOR MATRIX
Their purpose is to police the system and terminate any entity that may threaten the
stability or function of the Matrix, such as Red pills and Exiled programs.
EXPLANATION FOR MATRIX ADDITION
In matrix addition, these programs you should notice the branch construction which
follows the size statements. This is included as an error message.
In the case of add, an error is made if we attempt to add matrices of different sizes.
The words surrounded by the quotes will be treated as text and sent to the screen as the
value of the variable. Following the message is the command return, which is the
directive to send the control back to the function which called add or return to the
prompt. I usually only recommend using the return command in the context of an error
message.
#include<iostream>
using namespace std;
int main()
{
int i,j,m1,m2,n1,n2;
int a[10][10], b[10][10], c[10]
[10];
cout<<"Enter row of matrix A:
";
cin>>m1;
cout<<"Enter column of matrix
A: ";
cin>>n1;
cout<<"Enter row of matrix B:
";
cin>>m2;
cout<<"Enter column of matrix
B: ";
cin>>n2;
if (m1!=m2 && n1!=n2)
{
cout<<"Both the matrices
should be of same order";
}
else{
cout<<"Enter elements of
matrix A["<<m1<<"]
["<<n1<<"]"<<endl;
for (i=0 ; i<m1 ; i++)
{
for (j=0 ; j<n1 ; j++)
cin>>a[i][j];
}
cout<<"Enter elements
of matrix B["<<m2<<"]
["<<n2<<"]"<<endl;
for (i=0 ; i<m2 ; i++)
{
for (j=0 ; j<n2 ; j++)
cin>>b[i][j];
}
for (i=0 ; i<m1 ; i++)
{
for (j=0 ; j<n2 ; j++)
c[i][j]=a[i][j]+b[i][j];
}
cout<<"Addition of matrices A
and B";
for(i=0 ; i<m1 ; i++)
{
cout<<endl;
for(j=0 ; j<n2 ; j++)
cout<<c[i][j]<<" ";
}}
cout<<endl;
system("pause");
return 0;
}
OUTPUT OF MATRIX ADDITION
Matrix print
Matrix print

More Related Content

What's hot

Analytical Models of Parallel Programs
Analytical Models of Parallel ProgramsAnalytical Models of Parallel Programs
Analytical Models of Parallel ProgramsDr Shashikant Athawale
 
Dynamic programming 2
Dynamic programming 2Dynamic programming 2
Dynamic programming 2Roy Thomas
 
Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearDezyneecole
 
Divide&Conquer & Dynamic Programming
Divide&Conquer & Dynamic ProgrammingDivide&Conquer & Dynamic Programming
Divide&Conquer & Dynamic ProgrammingGuillaume Guérard
 
TechDaysNL 2015 - F# for C# Developers
TechDaysNL 2015 - F# for C# DevelopersTechDaysNL 2015 - F# for C# Developers
TechDaysNL 2015 - F# for C# DevelopersRonald Harmsen
 
C programming presentation(final)
C programming presentation(final)C programming presentation(final)
C programming presentation(final)aaravSingh41
 
Main topic 3 problem solving and office automation
Main topic 3 problem solving and office automationMain topic 3 problem solving and office automation
Main topic 3 problem solving and office automationInfinity Tech Solutions
 

What's hot (8)

Analytical Models of Parallel Programs
Analytical Models of Parallel ProgramsAnalytical Models of Parallel Programs
Analytical Models of Parallel Programs
 
Dynamic programming 2
Dynamic programming 2Dynamic programming 2
Dynamic programming 2
 
Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third Year
 
Divide&Conquer & Dynamic Programming
Divide&Conquer & Dynamic ProgrammingDivide&Conquer & Dynamic Programming
Divide&Conquer & Dynamic Programming
 
TechDaysNL 2015 - F# for C# Developers
TechDaysNL 2015 - F# for C# DevelopersTechDaysNL 2015 - F# for C# Developers
TechDaysNL 2015 - F# for C# Developers
 
C programming presentation(final)
C programming presentation(final)C programming presentation(final)
C programming presentation(final)
 
Ocs752 unit 4
Ocs752   unit 4Ocs752   unit 4
Ocs752 unit 4
 
Main topic 3 problem solving and office automation
Main topic 3 problem solving and office automationMain topic 3 problem solving and office automation
Main topic 3 problem solving and office automation
 

Viewers also liked

Benny Salaets - Realising the Digital Agend in Flanders
Benny Salaets - Realising the Digital Agend in FlandersBenny Salaets - Realising the Digital Agend in Flanders
Benny Salaets - Realising the Digital Agend in Flandersimec.archive
 
Beijing MoST standards + IPR conference Clark-OASIS-2011
Beijing MoST standards + IPR conference Clark-OASIS-2011Beijing MoST standards + IPR conference Clark-OASIS-2011
Beijing MoST standards + IPR conference Clark-OASIS-2011Jamie Clark
 
Oracle Financial Services - Latest Offerings Brief - Vietnam Cust Appreciatio...
Oracle Financial Services - Latest Offerings Brief - Vietnam Cust Appreciatio...Oracle Financial Services - Latest Offerings Brief - Vietnam Cust Appreciatio...
Oracle Financial Services - Latest Offerings Brief - Vietnam Cust Appreciatio...lance slides
 
Ict Sd09 Overal In Je Leven Kom Je 1700 Tegen
Ict Sd09 Overal In Je Leven Kom Je 1700 TegenIct Sd09 Overal In Je Leven Kom Je 1700 Tegen
Ict Sd09 Overal In Je Leven Kom Je 1700 Tegenimec.archive
 
Leen Vandezande - slimme energie diensten
Leen Vandezande - slimme energie dienstenLeen Vandezande - slimme energie diensten
Leen Vandezande - slimme energie dienstenimec.archive
 
Why drivers stay with fleets
Why drivers stay with fleetsWhy drivers stay with fleets
Why drivers stay with fleetsRutger Gassner
 
Symptoms of a Billings and Payment Problem
Symptoms of a Billings and Payment ProblemSymptoms of a Billings and Payment Problem
Symptoms of a Billings and Payment ProblemRutger Gassner
 
Romas04 User Driven Living Lab Innovation For Mobile City Applications Jo Pi...
Romas04 User Driven Living Lab Innovation For Mobile City Applications  Jo Pi...Romas04 User Driven Living Lab Innovation For Mobile City Applications  Jo Pi...
Romas04 User Driven Living Lab Innovation For Mobile City Applications Jo Pi...imec.archive
 
A S S I N G M E N T
A S S I N G M E N TA S S I N G M E N T
A S S I N G M E N TZahoor Ahmed
 
Medición de la transferencia universitaria según los ranking internacionales
Medición de la transferencia universitaria según los ranking internacionalesMedición de la transferencia universitaria según los ranking internacionales
Medición de la transferencia universitaria según los ranking internacionalesIvie
 
Q932+sgo reference fa lec
Q932+sgo reference fa lecQ932+sgo reference fa lec
Q932+sgo reference fa lecAFATous
 
Lucía folclore-galego
Lucía folclore-galegoLucía folclore-galego
Lucía folclore-galegoiesaguia
 
33720055
3372005533720055
33720055dkr786
 
Lucía folclore-inglés
Lucía folclore-inglésLucía folclore-inglés
Lucía folclore-inglésiesaguia
 
Wim De Waele - IBBT Strategy
Wim De Waele - IBBT StrategyWim De Waele - IBBT Strategy
Wim De Waele - IBBT Strategyimec.archive
 
Workshopvin6 User Interface Adaptation
Workshopvin6 User Interface AdaptationWorkshopvin6 User Interface Adaptation
Workshopvin6 User Interface Adaptationimec.archive
 
Acknowledge 06 Competentiemanagement In Het Acknowledge Platform Luk Vervenne...
Acknowledge 06 Competentiemanagement In Het Acknowledge Platform Luk Vervenne...Acknowledge 06 Competentiemanagement In Het Acknowledge Platform Luk Vervenne...
Acknowledge 06 Competentiemanagement In Het Acknowledge Platform Luk Vervenne...imec.archive
 
Im3 06 Telemonitoring, Uitdagingen Voor De Gezondheidszorg Jo De Cock
Im3 06 Telemonitoring, Uitdagingen Voor De Gezondheidszorg  Jo De CockIm3 06 Telemonitoring, Uitdagingen Voor De Gezondheidszorg  Jo De Cock
Im3 06 Telemonitoring, Uitdagingen Voor De Gezondheidszorg Jo De Cockimec.archive
 

Viewers also liked (20)

Benny Salaets - Realising the Digital Agend in Flanders
Benny Salaets - Realising the Digital Agend in FlandersBenny Salaets - Realising the Digital Agend in Flanders
Benny Salaets - Realising the Digital Agend in Flanders
 
Beijing MoST standards + IPR conference Clark-OASIS-2011
Beijing MoST standards + IPR conference Clark-OASIS-2011Beijing MoST standards + IPR conference Clark-OASIS-2011
Beijing MoST standards + IPR conference Clark-OASIS-2011
 
Oracle Financial Services - Latest Offerings Brief - Vietnam Cust Appreciatio...
Oracle Financial Services - Latest Offerings Brief - Vietnam Cust Appreciatio...Oracle Financial Services - Latest Offerings Brief - Vietnam Cust Appreciatio...
Oracle Financial Services - Latest Offerings Brief - Vietnam Cust Appreciatio...
 
Ict Sd09 Overal In Je Leven Kom Je 1700 Tegen
Ict Sd09 Overal In Je Leven Kom Je 1700 TegenIct Sd09 Overal In Je Leven Kom Je 1700 Tegen
Ict Sd09 Overal In Je Leven Kom Je 1700 Tegen
 
Ferias Em Africa 2
Ferias Em Africa 2Ferias Em Africa 2
Ferias Em Africa 2
 
Leen Vandezande - slimme energie diensten
Leen Vandezande - slimme energie dienstenLeen Vandezande - slimme energie diensten
Leen Vandezande - slimme energie diensten
 
Why drivers stay with fleets
Why drivers stay with fleetsWhy drivers stay with fleets
Why drivers stay with fleets
 
Symptoms of a Billings and Payment Problem
Symptoms of a Billings and Payment ProblemSymptoms of a Billings and Payment Problem
Symptoms of a Billings and Payment Problem
 
Romas04 User Driven Living Lab Innovation For Mobile City Applications Jo Pi...
Romas04 User Driven Living Lab Innovation For Mobile City Applications  Jo Pi...Romas04 User Driven Living Lab Innovation For Mobile City Applications  Jo Pi...
Romas04 User Driven Living Lab Innovation For Mobile City Applications Jo Pi...
 
A S S I N G M E N T
A S S I N G M E N TA S S I N G M E N T
A S S I N G M E N T
 
Medición de la transferencia universitaria según los ranking internacionales
Medición de la transferencia universitaria según los ranking internacionalesMedición de la transferencia universitaria según los ranking internacionales
Medición de la transferencia universitaria según los ranking internacionales
 
Q932+sgo reference fa lec
Q932+sgo reference fa lecQ932+sgo reference fa lec
Q932+sgo reference fa lec
 
Livro 1
Livro 1Livro 1
Livro 1
 
Lucía folclore-galego
Lucía folclore-galegoLucía folclore-galego
Lucía folclore-galego
 
33720055
3372005533720055
33720055
 
Lucía folclore-inglés
Lucía folclore-inglésLucía folclore-inglés
Lucía folclore-inglés
 
Wim De Waele - IBBT Strategy
Wim De Waele - IBBT StrategyWim De Waele - IBBT Strategy
Wim De Waele - IBBT Strategy
 
Workshopvin6 User Interface Adaptation
Workshopvin6 User Interface AdaptationWorkshopvin6 User Interface Adaptation
Workshopvin6 User Interface Adaptation
 
Acknowledge 06 Competentiemanagement In Het Acknowledge Platform Luk Vervenne...
Acknowledge 06 Competentiemanagement In Het Acknowledge Platform Luk Vervenne...Acknowledge 06 Competentiemanagement In Het Acknowledge Platform Luk Vervenne...
Acknowledge 06 Competentiemanagement In Het Acknowledge Platform Luk Vervenne...
 
Im3 06 Telemonitoring, Uitdagingen Voor De Gezondheidszorg Jo De Cock
Im3 06 Telemonitoring, Uitdagingen Voor De Gezondheidszorg  Jo De CockIm3 06 Telemonitoring, Uitdagingen Voor De Gezondheidszorg  Jo De Cock
Im3 06 Telemonitoring, Uitdagingen Voor De Gezondheidszorg Jo De Cock
 

Similar to Matrix print

Introduction to c
Introduction to cIntroduction to c
Introduction to camol_chavan
 
1588147798Begining_ABUAD1.pdf
1588147798Begining_ABUAD1.pdf1588147798Begining_ABUAD1.pdf
1588147798Begining_ABUAD1.pdfSemsemSameer1
 
Introduction to C Unit 1
Introduction to C Unit 1Introduction to C Unit 1
Introduction to C Unit 1SURBHI SAROHA
 
Automatic Task-based Code Generation for High Performance DSEL
Automatic Task-based Code Generation for High Performance DSELAutomatic Task-based Code Generation for High Performance DSEL
Automatic Task-based Code Generation for High Performance DSELJoel Falcou
 
Introduction to MPI
Introduction to MPIIntroduction to MPI
Introduction to MPIyaman dua
 
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptx
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptxIIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptx
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptxrajkumar490591
 
C programming language tutorial
C programming language tutorial C programming language tutorial
C programming language tutorial javaTpoint s
 
COMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docx
COMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docxCOMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docx
COMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docxdonnajames55
 
cmp104 lec 8
cmp104 lec 8cmp104 lec 8
cmp104 lec 8kapil078
 
(ThoughtWorks Away Day 2009) one or two things you may not know about typesys...
(ThoughtWorks Away Day 2009) one or two things you may not know about typesys...(ThoughtWorks Away Day 2009) one or two things you may not know about typesys...
(ThoughtWorks Away Day 2009) one or two things you may not know about typesys...Phil Calçado
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answersdebarghyamukherjee60
 
Getting started in c++
Getting started in c++Getting started in c++
Getting started in c++Neeru Mittal
 
C Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpointC Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpointJavaTpoint.Com
 
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...ANUSUYA S
 
complete data structure
complete data structurecomplete data structure
complete data structureAnuj Arora
 
Datastructurenotes 100627004340-phpapp01
Datastructurenotes 100627004340-phpapp01Datastructurenotes 100627004340-phpapp01
Datastructurenotes 100627004340-phpapp01Getachew Ganfur
 

Similar to Matrix print (20)

Introduction to c
Introduction to cIntroduction to c
Introduction to c
 
Tutorial
TutorialTutorial
Tutorial
 
1588147798Begining_ABUAD1.pdf
1588147798Begining_ABUAD1.pdf1588147798Begining_ABUAD1.pdf
1588147798Begining_ABUAD1.pdf
 
Introduction to C Unit 1
Introduction to C Unit 1Introduction to C Unit 1
Introduction to C Unit 1
 
Automatic Task-based Code Generation for High Performance DSEL
Automatic Task-based Code Generation for High Performance DSELAutomatic Task-based Code Generation for High Performance DSEL
Automatic Task-based Code Generation for High Performance DSEL
 
C sharp chap6
C sharp chap6C sharp chap6
C sharp chap6
 
Introduction to MPI
Introduction to MPIIntroduction to MPI
Introduction to MPI
 
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptx
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptxIIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptx
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptx
 
A tutorial on C++ Programming
A tutorial on C++ ProgrammingA tutorial on C++ Programming
A tutorial on C++ Programming
 
C programming language tutorial
C programming language tutorial C programming language tutorial
C programming language tutorial
 
COMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docx
COMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docxCOMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docx
COMP 2103X1 Assignment 2Due Thursday, January 26 by 700 PM.docx
 
C programming
C programmingC programming
C programming
 
cmp104 lec 8
cmp104 lec 8cmp104 lec 8
cmp104 lec 8
 
(ThoughtWorks Away Day 2009) one or two things you may not know about typesys...
(ThoughtWorks Away Day 2009) one or two things you may not know about typesys...(ThoughtWorks Away Day 2009) one or two things you may not know about typesys...
(ThoughtWorks Away Day 2009) one or two things you may not know about typesys...
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answers
 
Getting started in c++
Getting started in c++Getting started in c++
Getting started in c++
 
C Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpointC Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpoint
 
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
 
complete data structure
complete data structurecomplete data structure
complete data structure
 
Datastructurenotes 100627004340-phpapp01
Datastructurenotes 100627004340-phpapp01Datastructurenotes 100627004340-phpapp01
Datastructurenotes 100627004340-phpapp01
 

More from Sofia Palawan

More from Sofia Palawan (8)

Itnarrativereportformat
ItnarrativereportformatItnarrativereportformat
Itnarrativereportformat
 
Magtibay buk bind#2
Magtibay buk bind#2Magtibay buk bind#2
Magtibay buk bind#2
 
Itep
ItepItep
Itep
 
Graph
GraphGraph
Graph
 
Resume kara crystal pascasio
Resume  kara crystal pascasioResume  kara crystal pascasio
Resume kara crystal pascasio
 
Resume sofia p.
Resume  sofia p.Resume  sofia p.
Resume sofia p.
 
Buwang wika
Buwang wikaBuwang wika
Buwang wika
 
GROUP5-SYLLABLES
GROUP5-SYLLABLESGROUP5-SYLLABLES
GROUP5-SYLLABLES
 

Recently uploaded

Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 

Recently uploaded (20)

Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 

Matrix print

  • 1. REPUBLIC OF THE PHILIPPINES LAGUNA STATE POLYTECHNIC UNIVERSITY SINILOAN HOST CAMPUS SINILOAN LAGUNA SUBMITTED BY : SOFIA D. PALAWAN KARA CRYSTAL R. PASCASIO SUBMITTED TO : MS AILEEN MAGTIBAY AIT 2-1
  • 2. ANALYSIS FOR MATRIX ADDITION PROGRAMMING is the art of making a computer do what you want it to do. At the very simplest level it consists of issuing a sequence of commands to a computer to achieve an objective. A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks. The term programming language usually refers to high-level languages, such as BASIC, C, C++, COBOL, FORTRAN, Ada, and Pascal. Each language has a unique set of keywords (words that it understands) and a special syntax for organizing program instructions. Computer Programming PURPOSE OF PROGRAMMING FOR MATRIX Their purpose is to police the system and terminate any entity that may threaten the stability or function of the Matrix, such as Red pills and Exiled programs. EXPLANATION FOR MATRIX ADDITION In matrix addition, these programs you should notice the branch construction which follows the size statements. This is included as an error message. In the case of add, an error is made if we attempt to add matrices of different sizes. The words surrounded by the quotes will be treated as text and sent to the screen as the value of the variable. Following the message is the command return, which is the directive to send the control back to the function which called add or return to the prompt. I usually only recommend using the return command in the context of an error message.
  • 3. #include<iostream> using namespace std; int main() { int i,j,m1,m2,n1,n2; int a[10][10], b[10][10], c[10] [10]; cout<<"Enter row of matrix A: "; cin>>m1; cout<<"Enter column of matrix A: "; cin>>n1; cout<<"Enter row of matrix B: "; cin>>m2; cout<<"Enter column of matrix B: "; cin>>n2; if (m1!=m2 && n1!=n2) { cout<<"Both the matrices should be of same order"; } else{ cout<<"Enter elements of matrix A["<<m1<<"] ["<<n1<<"]"<<endl; for (i=0 ; i<m1 ; i++) { for (j=0 ; j<n1 ; j++) cin>>a[i][j]; } cout<<"Enter elements of matrix B["<<m2<<"] ["<<n2<<"]"<<endl; for (i=0 ; i<m2 ; i++) { for (j=0 ; j<n2 ; j++) cin>>b[i][j]; } for (i=0 ; i<m1 ; i++) { for (j=0 ; j<n2 ; j++) c[i][j]=a[i][j]+b[i][j]; } cout<<"Addition of matrices A and B"; for(i=0 ; i<m1 ; i++) { cout<<endl; for(j=0 ; j<n2 ; j++) cout<<c[i][j]<<" "; }} cout<<endl; system("pause"); return 0; } OUTPUT OF MATRIX ADDITION