SlideShare a Scribd company logo
oops
#include<iostream.h>
#include<conio.h>
void main()
{
int a[10][10],b[10][10],m[10][10],r,c,i,j,k;
clrscr();
cout<<"nEnter Number Of Rows: "<<endl;
cin>>r;
cout<<"nEnter Number Of Columns: "<<endl;
cin>>c;
cout<<"nEnter Elements Of 1st Matrix: "<<endl;
for(i=0;i<c;i++)
{
for(j=0;j<r;j++)
{
cin>>a[i][j];
}
}
cout<<"nEnter The Elements Of 2nd Matrix: "<<endl;
for(i=0;i<c;i++)
{
for(j=0;j<r;j++)
{
cin>>b[i][j];
}
}
cout<<"nThe Multiplication Of Both Matrix Are: "<<endl;
for(i=0;i<c;i++)
{
for(j=0;j<r;j++)
{
m[i][j]=0;
for(k=0;k<c;k++)
{
m[i][j]+=a[i][k]*b[j][k];
}
}
}
for(i=0;i<c;i++)
{
for(j=0;j<r;j++)
{
cout<<m[i][j];
cout<<"n";
}
}
getch();
}

More Related Content

PDF
Ooprc3c
DOCX
Program membalik kata
PDF
JavaSE7 Launch Event: Java7xGroovy
PPTX
Oops in c++
PDF
C++ TUTORIAL 5
PDF
Ooprc4 b
DOCX
KEY
cocos2d 事例編 HungryMasterの実装から
Ooprc3c
Program membalik kata
JavaSE7 Launch Event: Java7xGroovy
Oops in c++
C++ TUTORIAL 5
Ooprc4 b
cocos2d 事例編 HungryMasterの実装から

What's hot (20)

DOCX
C programs
PDF
10CSL67 CG LAB PROGRAM 10
PDF
Oopsprc1e
DOCX
Caropro
DOCX
Include
PDF
Understanding the nodejs event loop
PDF
Pablo Magaz | ECMAScript 2018 y más allá | Codemotion Madrid 2018
DOCX
Oop lab report
PPT
PDF
C++ TUTORIAL 10
PDF
C++ TUTORIAL 4
DOCX
cosc 281 hw2
PDF
JavaScript - Agora nervoso
PDF
20151224-games
PDF
10CSL67 CG LAB PROGRAM 8
PDF
C++ Programming - 14th Study
PDF
C++ TUTORIAL 3
PDF
Brief intro to clojure
C programs
10CSL67 CG LAB PROGRAM 10
Oopsprc1e
Caropro
Include
Understanding the nodejs event loop
Pablo Magaz | ECMAScript 2018 y más allá | Codemotion Madrid 2018
Oop lab report
C++ TUTORIAL 10
C++ TUTORIAL 4
cosc 281 hw2
JavaScript - Agora nervoso
20151224-games
10CSL67 CG LAB PROGRAM 8
C++ Programming - 14th Study
C++ TUTORIAL 3
Brief intro to clojure
Ad

More from Ankit Dubey (20)

PDF
Unit 1 android and it's tools quiz {mad cwipedia}
PDF
Scheduling
PDF
Chapter 4
PDF
Chapter 3
PDF
Chapter 2
PDF
Chapter 1
PDF
Chapter 5
PDF
Ch5 cpu-scheduling
PDF
Ch4 threads
PDF
Ch3 processes
PPT
Ch2 system structure
PPT
Ch1 introduction-to-os
PDF
Android i
PDF
Mongodb mock test_ii
PDF
Android mock test_iii
PDF
Android mock test_ii
PDF
Ajp notes-chapter-06
PDF
Ajp notes-chapter-05
PDF
Ajp notes-chapter-04
PDF
Ajp notes-chapter-03
Unit 1 android and it's tools quiz {mad cwipedia}
Scheduling
Chapter 4
Chapter 3
Chapter 2
Chapter 1
Chapter 5
Ch5 cpu-scheduling
Ch4 threads
Ch3 processes
Ch2 system structure
Ch1 introduction-to-os
Android i
Mongodb mock test_ii
Android mock test_iii
Android mock test_ii
Ajp notes-chapter-06
Ajp notes-chapter-05
Ajp notes-chapter-04
Ajp notes-chapter-03
Ad

Recently uploaded (20)

PPT
Mechanical Engineering MATERIALS Selection
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Sustainable Sites - Green Building Construction
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
DOCX
573137875-Attendance-Management-System-original
PPT
Project quality management in manufacturing
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Construction Project Organization Group 2.pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
Mechanical Engineering MATERIALS Selection
additive manufacturing of ss316l using mig welding
Sustainable Sites - Green Building Construction
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
573137875-Attendance-Management-System-original
Project quality management in manufacturing
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Automation-in-Manufacturing-Chapter-Introduction.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Construction Project Organization Group 2.pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Safety Seminar civil to be ensured for safe working.
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
CH1 Production IntroductoryConcepts.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Operating System & Kernel Study Guide-1 - converted.pdf

Oopsprc1c

  • 1. oops #include<iostream.h> #include<conio.h> void main() { int a[10][10],b[10][10],m[10][10],r,c,i,j,k; clrscr(); cout<<"nEnter Number Of Rows: "<<endl; cin>>r; cout<<"nEnter Number Of Columns: "<<endl; cin>>c; cout<<"nEnter Elements Of 1st Matrix: "<<endl; for(i=0;i<c;i++) { for(j=0;j<r;j++) { cin>>a[i][j]; } } cout<<"nEnter The Elements Of 2nd Matrix: "<<endl; for(i=0;i<c;i++) { for(j=0;j<r;j++) { cin>>b[i][j]; } } cout<<"nThe Multiplication Of Both Matrix Are: "<<endl; for(i=0;i<c;i++) { for(j=0;j<r;j++) { m[i][j]=0; for(k=0;k<c;k++) { m[i][j]+=a[i][k]*b[j][k]; } } } for(i=0;i<c;i++) { for(j=0;j<r;j++) { cout<<m[i][j]; cout<<"n"; } } getch(); }