https://www.daniweb.com/community/contribute#

```
#include <stdio.h>
#include <iostream>
int main(int argc, char*argv[])
{
int my2d[5][4] ={
{ 36, 14, 41, 24},
{ 47, 47, 49, 15},
{ 40, 23, 29, 49},
{ 17, 23, 7, 7},
{ 48, 43, 35, 12} };
int result = 0;
// avg
int avg()
float sum=5.4;
for(i = 0; i <= 5; i = i + 1) {
for(j = 0; j <= 5; j = j + 1){
sum = sum + a[5][4];
}
printf("The the average number is %.2f\n", sum/5);
}
```

Need help with calculating the average of each row and the average of the whole 2d array, im new to coding and need help.