Skip to content Skip to sidebar Skip to footer

Example of a Matrix Program with Order 3x3

This time I want to share and summarize my knowledge so that I can remember it later. Namely about C Matrix program with order 3×3 and displays the input entered by the user.

Actually, this is a daily assignment from my lecturer, which is more or less like:

Create a matrix program with order 3 x3 that can receive input from the user and display the values!

Here’s the program.

Matrix Program with Ordro 3×3

C program matrix of order 3×3

#include

#include

#include

// 3×3 order matrix program //

using namespace std;

int main() {

int a[3][3],b[3][3]c[3][3],i,j,k;

cout<<"3 x 3 matrix:";

cout

for(i=0;i<3;i++){

for(j=0;j<3;j++){

cout<<“Input Row “<<(i+1)<<” , Column “<<(j+1)<<” = “;

cin>>a[i][j];}

cout

cout << "Matrix 3 x 3 = "

for(i=0;i<3;i++){

for(j=0;j<3;j++){

cout

Just copy and paste it into your dev C++ application then compile it, I hope it’s useful.

A+

A-