Baka may idea po kayo? Di ko alam anong mali eh
#include <stdio.h>
int main()
{
int rows, columns;
printf("Enter the number of rows: ");
scanf("%d", &rows);
printf("Enter the number of columns: ");
scanf("%d", &columns);
int arr[rows][columns];
for (int i = 0; i < rows; i++)
{
for (int j = 0; j < columns; j++)
{
scanf("%d", &arr[i][j]);
}
}
if (rows == columns)
printf("SPY");
else
printf("NONE");
return 0;
}
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.