Whats wrong with the following while repetition statement


Question: What's wrong with the following while repetition statement (assume z has value 100), which is supposed to calculate the sum of the integers from 100 down to 1? while ( z >= 0 ) sum += z?

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Whats wrong with the following while repetition statement
Reference No:- TGS02403584

Now Priced at $10 (50% Discount)

Recommended (92%)

Rated (4.4/5)