In this video we will talk about a program where we will find out sum of individual
rows and columns like this is a matrix 3 into 3 metrics individual rows means this
one row one two and three so some would be for four for this row. Some special
classes would also be conducted like they 'll also discuss preparation strategy
some tips and tricks practice questions as well as numericals. We will access the
elements and as well as we are going to print the sum right so obviously 2 for loop
i should be 0 i less than 3 and i plus plus right now. After some after doing some
of this row right that is 4 that sum of our variable should again be.Initialized
with a 0 for this row otherwise if you will not again. it will do what for some for
first row it 's 4 then in 4 only it will add these values. Let me dry run this
program for you then you will get the working of this for loop right see this i
hope you goti have entered this one right now see i value is 0 5 i less than 4 3
yes condition to enter here now. now we are in this inner loop now j plus one j
becomes one condition two.
In the video, the speaker demonstrates how to calculate the sum of a row and column
in an array. First, they initialize the sum variable to 0. Next, they use a for
loop to print the sum value for each row and column in the array. Finally, they
calculate the sum of all three rows and columns, and print the result to the
screen.
rows and columns like this is a matrix 3 into 3 metrics individual rows means this
one row one two and three so some would be for four for this row. Some special
classes would also be conducted like they 'll also discuss preparation strategy
some tips and tricks practice questions as well as numericals. We will access the
elements and as well as we are going to print the sum right so obviously 2 for loop
i should be 0 i less than 3 and i plus plus right now. After some after doing some
of this row right that is 4 that sum of our variable should again be.Initialized
with a 0 for this row otherwise if you will not again. it will do what for some for
first row it 's 4 then in 4 only it will add these values. Let me dry run this
program for you then you will get the working of this for loop right see this i
hope you goti have entered this one right now see i value is 0 5 i less than 4 3
yes condition to enter here now. now we are in this inner loop now j plus one j
becomes one condition two.
In the video, the speaker demonstrates how to calculate the sum of a row and column
in an array. First, they initialize the sum variable to 0. Next, they use a for
loop to print the sum value for each row and column in the array. Finally, they
calculate the sum of all three rows and columns, and print the result to the
screen.