Write a program in Q Basic to display the above pattern?
Attachments:
Answers
Answered by
2
Here is the code for the QBASIC pattern.
CLS
FOR i = 1 TO 5
FOR j = 1 TO i
k = j MOD 2
PRINT k;
NEXT j
PRINT
NEXT i
END.
CLS
FOR i = 1 TO 5
FOR j = 1 TO i
k = j MOD 2
PRINT k;
NEXT j
NEXT i
END.
siddhartharao77:
If possible brainliest it
Answered by
23
ANSWER
...........
The programme is given below
.........
********************
FOR i = 1 TO 5
FOR j = 1 TO i
I = 1 to 5
J = 1 to i
*******************
k = j MOD 2
PRINT k;
= NEXT j
= PRINT
= NEXT i
©©©©©©©©©©©©©©©
...........
The programme is given below
.........
********************
FOR i = 1 TO 5
FOR j = 1 TO i
I = 1 to 5
J = 1 to i
*******************
k = j MOD 2
PRINT k;
= NEXT j
= NEXT i
©©©©©©©©©©©©©©©
Similar questions