Answer to Question #159985 in C++ for KUMAR ASHISH

Question #159985

Fill in the blanks to complete the code that prints the string:

“bccbccbccaaaaaaaaaabccbccbccaaaaaaaaaa”


repeat(B1){

repeat(B2){

cout<<"b";

repeat(B3){

cout<<"c";

}

}

repeat(B4){

cout<<"a";

repeat(2){

cout<<"a";

}

}

}


1
Expert's answer
2021-01-30T10:45:03-0500
repeat(2){
    repeat(3){
        cout<<"b";
        repeat(2){
            cout<<"c";
        }
    }
    repeat(2){
        cout<<"a";
        repeat(4){
            cout<<"a";
        }
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog