Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

TeeWolves2841932
C algorithm help please?
I need to help with a an algorithm in C?
I need to create a 2D array that looks like this
int array[r][c] =
{
3 2 1 0 7
6 5 4 11 10
9 8 15 14 13
12 19 18 17 16
23 22 21 20 27
26 25 24 31 30
29 28 35 34 33
..... }
Please help me come up with a function that would take r and c as arguments and
output the corresponding element of the array. For example , get(0,0) would return 3 and get(1,3) would return 11
1 AnswerProgramming & Design10 years agoI need to help with a an algorithm in C?
I need to create a 2D array that looks like this
int array[r][c] =
{ 3 2 1 0 7
6 5 4 11 10
9 8 15 14 13
12 19 18 17 16
23 22 21 20 27
26 25 24 31 30
29 28 35 34 33
..... }
Please help me come up with a function that would take r and c as arguments and
output the corresponding element of the array. For example , get(0,0) would return 3 and get(1,3) would return 11
1 AnswerMathematics10 years ago