For(int i=0,j=1;i<=4;i+=2,j+=2){
for(int k=i;k<=i;k++)
Syso..print("*");
For(int k=j;k<=j;k++)
Syso..print(" ");
}
this is what i got the first line:
*blank*blank*
Type: Posts; User: eyalfish
For(int i=0,j=1;i<=4;i+=2,j+=2){
for(int k=i;k<=i;k++)
Syso..print("*");
For(int k=j;k<=j;k++)
Syso..print(" ");
}
this is what i got the first line:
*blank*blank*
Hi,
i need to create this shape:
*" "*" "*
" "*" "*" "
" "" "*" "" "
using loops.can you guide me on how to deal with the blank and asterisks?
its just dont work correctly for me
thanks...