To display the pattern. 1 10 101 1010 10101 (Qbasic Code) To display the pattern. 1 10 101 1010 10101 CLSFOR i = 1 TO 5 FOR j = 1 TO i x = j MOD 2 PRINT x; NEXT j PRINTNEXT iEND Share : Twitter