View the step-by-step solution to:

while(x>=1) { for(int i=8;i<x;i++) { System.print("A"); if(i==1 ) if( y==1) System.print(".") VH3 }...

hello dear,

can you please help in this question?

in given code what is the output in each of the following cases?

  1. x=3, y=1


  1. x=4, y=0

Screen Shot 2018-04-03 at 8.59.16 PM.png

Screen Shot 2018-04-03 at 8.59.16 PM.png

while(x>=1) {
for(int i=8;i<x;i++)
if(i==1 )
if( y==1) System.out.print("...")
System.out.println("y =" + y);
System.out.println("x =" + x); J

Top Answer

Output: #1) x=3, y=1 AAAB AAB AB y... View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online