Logo

तल दिइएको प्रोग्रामको आउटपुट लेखी Dry run टेबलमा देखाउनुहोस् : Write down the output of the given program and show them in dry run table: DECLARE…

SEE Class 10 Computer Science · 2080 · Solved Question with Answer

तल दिइएको प्रोग्रामको आउटपुट लेखी Dry run टेबलमा देखाउनुहोस् : 
Write down the output of the given program and show them in dry run table:


DECLARE FUNCTION SQN (N)
CLS
S = 0
FOR L = 1 TO 3
    READ NUM
    S = S + SQN (NUM)
NEXT L
PRINT "Sum of square" ; S
DATA 1, 4, 5
END

FUNCTION SQN (N)
  SQN = N ^ 2
END FUNCTION

Solution

Please login to view the answer.