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
0
Answer:
mate your program is incorrect
Answered by
0
Answer:
I hope your program is incorrect
Explanation:
I can't understand
Similar questions