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";
}
}
}
repeat(2){
repeat(3){
cout<<"b";
repeat(2){
cout<<"c";
}
}
repeat(2){
cout<<"a";
repeat(4){
cout<<"a";
}
}
}
Comments
Leave a comment