Question: student number:17050410 (please write the code in Qbasic) Q3. Fill in the missing part of the following program in such a way that when you
Q3. Fill in the missing part of the following program in such a way that when you input your student number, the output is the sum of its digits. (30P) INPUT sn S=0 A$=STR$(sn) m=LEN(AS) DIM X$(m) DIM Y(m) FOR i=1 TO m X$(0)=MID$(A$,i,1) NEXT FOR i=1 TO m S=S+Y(0) NEXT PRINTS
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
