Computer Science, asked by prabhthind8381, 1 year ago

What statement is used to draw a figure

Answers

Answered by anonymous0956
0

you can draw a figure using loops the example of a figure is given below:-

//*

//**

//***

//****

for(int i=1;i<=4;i++){

for(int j=0;j<=i;j++){

System.out.print("*");

}

System.out.print();}

Similar questions