Skip to content

Instantly share code, notes, and snippets.

@NV-Valentine
NV-Valentine / дз
Last active February 23, 2025 17:15 — forked from Vinnik67/задача 2
#include <iostream>
void calculateSums(int matrix[3][4], int rowCount, int colCount, int rowSums[], int colSums[], int& totalSum)
{
totalSum = 0;
for (int i = 0; i < rowCount; ++i)
{
for (int j = 0; j < colCount; ++j)
{
rowSums[i] += matrix[i][j];