Computer Science, asked by dibashparui2020, 2 months ago

Can someone provide me the dry run of this program?
The program:
public class{
static void main(String args[]){
{
for(int i=1;i<=5;i++)
{
for(int j=1;j<=i;j++)
{
if(j%2==0)
System.out.print("#\t");

else
System.out.print("*\t");
}
System.out.println();
}
}

The output is:
*
* #
* # *
* # * #
* # * # *

Answers

Answered by avneet823
0

Answer:

mate your program is incorrect

Answered by vea10apriyambada10
0

Answer:

I hope your program is incorrect

Explanation:

I can't understand

Similar questions