i am just trying to print the array elements that i have given in input nut the output is showing all elements as zero.
my code is-
#include
using namespace std;
int main() {
int n;
cin>>n;
int a[1000][1000];
int i,j;
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
cin>>a[i][j];
}
}
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
cout<<a[i][j];
}
}
return 0;
}
Not displaying the array that is given as input
hey @pragyachoudhary1111, may be there is some issue with coding blocks ide, have you tried running it on some other IDE?