Pular para o conteúdo principal

Postagens

Mostrando postagens com o rótulo soma linha

Matriz, soma linha, soma coluna, matrix

#include using namespace std; int main() {     int x, y, mat[4][4], soma=0;     for(x=0;x<4 font="" x="">     {                     for(y=0;y<4 font="" y="">                     {                                     cout<<"\nlinha"<                                     cin>>mat[x][y];                                     }                                     }                                     //soma todos os numeros acima da DP                                     for(x=0;x<4 font="" x="">                                     for(y=0;y<4 font="" y="">                                     if(x                                     soma+=mat[x][y];                                     //saida                                     system("cls");                                     {                                     for(x=0;x<4 font