Spash matrix.
#include<stdio.h>
int main() {
int r, c, count=0;;
printf("Enter the no. of rows and columns for sqare matrix : ");
scanf("%d%d",&r,&c);
int mat[r][c];
// Taking input from the user.
for (int i=0; i<r; i++){
for (int j=0; j<c; j++ ){
printf("matrix[%d][%d] = ", i+1,j+1);
scanf("%d",&mat[i][j]);
if (mat[i][j]==0){
count++;
}
}
}
if (count>c*r/2){
printf("Spash.");
}
else{
printf("Not spash.");
}
return 0;
}