c programming of matrix algorithm - 40650

Solution Posted by
hadigh

hadigh

Rating : No Rating
Solution Detail
Price: $2.00
  • From: ,
  • Posted on: Sun 12 Jan, 2014
  • Request id: # 40606
  • Purchased: 0 time(s)
  • Average Rating: No rating
Request Description
Solution Description

#include <stdio.h>

#define N 2  // number of rows
#define M 2  // number of columns

int A[N][M];

void main(){
    int max,min,sum,mul;
    int row, col;
    printf("Input elements of matrix:\n");
   
    for(row=0; row<N; row++)
        for(col=0; col<M; col++){
            printf("A[%d][%d]=",row,col);
        &nbs

Attachments
matrix.cpp
matrix.cpp