C program to input a matrix and change the diagonal elements to zero.
Here is a program to convert the diagonal elements to zero.
It cheaks if the element i==j and converts it to zero. And it cheaks if the element i+j+1 == to the number of rows and converts to zero.
Here is the code.
#include<stdio.h>
#include<math.h>...
gagang.hashnode.dev1 min read