Find the value of sum after the given program segment is executed. (Here i, j, k, increment,
Question:
increment : = 0
sum : = 0
for i := 1 to 10 do
for j : = 1 to i do
for k : = 1 to j do
begin
increment : = increment + 1
sum := sum + increment
end
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: