All variables are properly declared Part of a functional pro

All variables are properly declared; Part of a functional program is shown: x initial value is 1; while (x

Solution

Answer:

1) While loop will run till 20 as the condition is given if( x < = 20) so loop will be running till x = 20.

2) all the values divisible by 4 : 4 , 8 , 12 , 16 and 20 = 5 values of x will be printed in one line

3) As there are only five values which are divisible by 4 , hence only 5 lines will be printed.

4) Final value of x = 1,2,3,5,6,7,9,10,11,13,14,15,17,18,19.

 All variables are properly declared; Part of a functional program is shown: x initial value is 1; while (x SolutionAnswer: 1) While loop will run till 20 as th

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site