Computer Science, asked by itsnick, 5 months ago

Someone answer this pls ​

Attachments:

Answers

Answered by BrainlyProgrammer
2

Answer:

This is done in QBASIC

CLS

FOR I=1 TO 4

FOR J=1 TO I

PRINT I

NEXT J

PRINT

NEXT I

END

_______________

It can also be done in java

class Pattern

{

public static void main (String ar[])

{

for (I=1;I<=4;I++)

{

for(j=1;j<=I;j++)

{

System.out.print(I);

}

System.out.println();

}

}

}

_______________

In python,

for i in range(1,4+1,1):

for j in range(1,i+1,1):

print(i,end=" ")

print()

Similar questions