Question 1

· unclassifiedP · Verified PYQ

What will be the final value of the res when INPUT N1=100? Function F(INPUT N1) Static int res=0; IF(N1>0) res=res+1 F(N1/20) END IF return res END Function

  • A. 3
  • B. 2
  • C. Error
  • D. 1

Answer:

B2

← Power of a NumberQuestion 1 →
Report an issue with this question