1.

REM Display multiples of 3FOR I=3 TO 30 STEP_____PRINT INEXT I(e) What should be the step value in the following code?​

Answer»

Answer:-

In the given qbasic code, the value of step will be 3.

This is because DIFFERENCE between MULTIPLES of 3 is 3.

So, if the code is like,

FOR I=3 TO 30 STEP 3

PRINT I

NEXT I

Then, OUTPUT will be,

3

6(3+3)

9(3+3+3)

....... and this will CONTINUE till 30.

So, the required value is 3.



Discussion

No Comment Found