Computers and Technology

Consider the following code segment: int[][]nums = {{1, 2, 3},
{100,200,300},
{4, 6, 5},
{7,8,6}};
int sum = 0;
for(int row = 0; row < nums. length/2; row++)
{
for(int col = 0; col < nums[row].length/2; col++)
{
sum += nums[row][col];
}
}
System. out. println(sum);
What will be displayed as a result of executing this code segment?

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 07:50, madim1275
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
image
Computers and Technology, 25.06.2019 05:00, quintinlarrieu
Brad wants to buy flowers for his friend with 33 dollars. the daisies are 1 dollar each and the roses are 2 dollars each he buy 3 more daisies than roses how much did the roses cost
Answers: 2
image
Computers and Technology, 25.06.2019 08:00, lilkit
In designing a management information system (mis), after defining the system's objectives, the next step is to information in a useful formatintegrate the hardware and software componentscollect and analyze datause information for decision making
Answers: 2
image
Computers and Technology, 25.06.2019 08:00, yungkxng57
Is a major factor in the widespread use of global information systems
Answers: 1
Do you know the correct answer?
Consider the following code segment: int[][]nums = {{1, 2, 3},
{100,200,300},
{4, 6,...

Questions in other subjects: