Someone answer this pls
Attachments:
Answers
Answered by
2
Answer:
This is done in QBASIC
CLS
FOR I=1 TO 4
FOR J=1 TO I
PRINT I
NEXT J
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
Social Sciences,
2 months ago
Math,
2 months ago
English,
2 months ago
Hindi,
5 months ago
Chemistry,
11 months ago