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

student number:17050410 (please write the code in Qbasic) student number:17050410 (please write the code in Qbasic) Q3. Fill in the

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!