Create variables and call


What is the output of the following code:
Module MAIN( )
//Create variables and call modules.
Declare integer count1 =5
Declare integer count2 = 3
Declare integer count3 = 2

DISPLAY count1, count2, count3

CALL RECALC( count1)
DISPLAY count1, count2, count3

CALL RECALC( count3)
DISPLAY count1, count2, count3

CALL RECALC(count1)
DISPLAY count1, count2, count3

END MODULE
//The calculation module.
Module RECALC(integer ref num)
DECLARE integer num1 = 2
SET num = num1 * num
END Module

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Create variables and call
Reference No:- TGS0934676

Now Priced at $10 (50% Discount)

Recommended (94%)

Rated (4.6/5)