Questions


December 2023 1 1 Report
1.FOR i = 1 TO 5
FOR space = 1 TO 5-i
PRINT""
NEXT space
FOR j = 1 TO 2*i-1
PRINT "*";
NEXT j
PRINT
NEXT i

2.FOR i = 1 TO 5
FOR space = 1 TO i-1
PRINT "";
NEXT space
FOR j = 1 TO 2* (6-i)-1
PRINT "*":
NEXT j
PRINT
NEXT i

3.FOR i = 1 TO 5
FOR j = 1 TO 5
IF i = j OR j = 6 - i
THEN PRINT "*":
ELSE PRINT"";
END IF
NEXT j
PRINT
NEXT I

give the outputs and please explain these line by line or by making columns for each variable and performing the calculations, to show how you got that output​

Answers & Comments


Add an Answer


Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Helpful Social

Copyright © 2024 EHUB.TIPS team's - All rights reserved.