Hi everyone,
Do not use a nested loop but just use a single input variable with a counter like variable
Try this
int k=0;
for(i = 0;i<3;i++)
{
k = k+1;
j = i;
printf("%d "a[i+k][j+k])
}
I hope you this helps you
Yours sincerely
Richard West
Reputation Points: 25
Solved Threads: 10
Practically a Master Poster
Offline 623 posts
since Jun 2004