तल दिइएको प्रोग्रामलाई अध्ययन गरी दिइएका प्रश्नको उत्तर दिनुहोस् : Study the following program and answer the given questions: DECLARE SUB…
SEE Class 10 Computer Science · 2082 · Solved Question with Answer
तल दिइएको प्रोग्रामलाई अध्ययन गरी दिइएका प्रश्नको उत्तर दिनुहोस् :
Study the following program and answer the given questions:
DECLARE SUB Reverse$(A$)
A$="COMPUTER"
END
SUB Reverse$(A$)
X = LEN(A$)
FOR I = X TO 1 STEP -1
B$ = MID$(A$, I, 1)
C$ = B$ + C$
NEXT I
PRINT "Reverse word"; C$
END SUB
(क) माथि दिइएको प्रोग्राममा LEN function को कार्य लेख्नुहोस् ।
Write the function of LEN function used in the above program.
(ख) माथिको प्रोग्राममा FOR ... NEXT LOOP कति पटक कार्यान्वयन हुन्छ ?
How many times does FOR ... NEXT LOOP execute in the above program?
