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
Explanation:
What you are asking ..
No problem..
But.
कैन यू प्लीज फॉलो मी प्लीज प्लीज ..
Similar questions