FIX THE CODE SO THAT THE OUTPUT IS 100 AND 140 DEF DOUBLESC1

FIX THE CODE SO THAT THE OUTPUT IS 100 AND 140

DEF DOUBLE(SC1,SC2):

SC1*=2

SC2*=2

#MAIN

T1= 50:T2 = 70

DOUBLEIT(T1,T2)

PRINT(T1,T2)

Solution

In the definition of function ,the function name is wrong . It should be DOUBLEIT(as per call) but it is taken as DOUBLE.

DEF DOUBLEIT(SC1,SC2):

SC1*=2

SC2*=2

#MAIN

T1= 50:T2 = 70

DOUBLEIT(T1,T2)

PRINT(T1,T2)

FIX THE CODE SO THAT THE OUTPUT IS 100 AND 140 DEF DOUBLE(SC1,SC2): SC1*=2 SC2*=2 #MAIN T1= 50:T2 = 70 DOUBLEIT(T1,T2) PRINT(T1,T2)SolutionIn the definition of

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site