Cuando calculas el promedio de las filas divides entre fil y debes dividir entre col, además pones notas[j], debería ser notas[ i ][j]
No utilices conio
Para calcular el promedio de las columnas puedes crearte un array, lo inicializas a 0 y luego sumas. Te pongo el código:
Código
#include<iostream> using namespace std; int main() { char op ; int notas [30][30]; int i,j,fil,col; float suma=0.0, promedio, columnas[30]; do { for(int x=0; x<30; x++) columnas[x] = 0; cout<<"\n *****************ARREGLOS BIDIMENSIONALES***************** \n"; cout<<"cuantas filas =>"; cin>>fil; cout<<"cuantas columnas =>"; cin>>col; cout<<"\nIngreso de valores:\n\n" ; for (i=0; i<fil;i++) { for (j=0; j<col;j++) { cout<<"fila["<<i<<"]"<<"columna["<<j<<"]=>"; cin>>notas[i][j]; } } cout<<"\n .....Salida de valores....\n"; for (i=0; i<fil;i++) { suma=0.0; cout<<"\t"<<"\n"; for (j=0; j<col;j++) { cout<<"\t"<<notas[i][j]; suma=suma+notas[i][j]; columnas[j] += notas[i][j]; } promedio=suma/col; cout<<"\t"<<promedio <<"\n"; } cout<<endl<<endl; for(int x=0; x<col; x++) cout<<"\t"<<columnas[x]/fil; cout<<"\n\t\t\t =) =)!!!\n"; cout<<"\n DESEA SALIR S/N...."; cin>>op; } while ((op!='s') && (op!='S')); return 0; }
Saludos