Determine the value of the integer variable counter after execution of the following program segment. (Here i,
Question:
counter : = 10
for i : = 1 to 12 do
for j : = 1 to r do
counter : = counter + 2
for k : = 5 to s do
for 1 : = 3 to k do
counter : = counter + 4
for m : = 3 to 12 do
counter : = counter + 6
for n : = t down to 7 do
counter : = counter + 8
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Question Posted: