Nossa amigo não consegue fazer isso sozinho?? Ou tem alguma duvida em especial?
Bom vc nem postou qual é a linguagem de programação q vc esta usando por isso vou fazer em assembly
ahuahuuah brincadeira vai ser em C.
#include<stdio.h>
#include<stdlib.h>
int main(){
int i=0,j=0,l=0,c=0,n[i], m[10][10],k=0;
do{
printf("\n informe o numero de linhas da matriz: "
scanf("%d", & l);
}while(l<0||l>10);
do{
printf("\n informe o numero de colunas da matriz: "
scanf("%d", & c);
}while(c<0||c>10);
for(i=0; i< l ; i++ ){
for(j=0; j< c ; j++ ){
printf("\n informe o numero m[%d] [%d]: ",i,j);
fflush(stdin);
scanf("%d", & m[i][j]);
}
}
for(i=0; i< l ; i++ ){
k=0;
for(j=0; j< c ; j++ ){
k = k + m[i][j];
n[i]=k;
}
}
for(i=0; i< l ; i++ ){
printf("\n soma: %d",n[i]);
for(j=0; j< c ; j++ ){
printf("\t %d",m[i][j]);
}
}
printf("\n\n"
system("PAUSE"
}
Ta ai mas não fica mau acustumado q na hora da prova ninguem vai fazer por vc
Plc mãe Biostar A55MLC2 som/rede | 2x 4Gb ddr3 1333 Gskill | FM1 A8 3870k Black Edition x4 @3.0Ghz| cooler Akasa Venom| GTX 660 Zotac| 2 x hd samsung 7200rpm (160gb, 500gb Sata II)| Ocz Fatal1ty 550w | caixas de som 5.1 creative | Monitor 2233rz Samsung | 3d Vision | Thermaltake v3 Black Edition