int a=0;
while(a<10){
int b=0;
if(a ==0 || a==9){
while(b<20){
b++;
System.out.print("B");
}
}else{
System.out.println("B B");
}
a++;
}
What is wrong with my code. It is printing the frame but I am getting an extra B on the side.
Under discussion
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet