- 1
Pattan in java. I want output like this. I don't know how that's possible.
*** ** *** ** ***
3 Respuestas
+ 1
I need to solve this help me
+ 1
Om Devani Then edit your question description and add a link to your code in Code Playground and an explanation of your difficulties
0
Use for loop with if condition
Use if condition to check even & odd in loop
If even print 3stars else print 2stars
Ex:- n=5
for(int i=0;i<n;i++){
if(i%2==0){
// print 3 stars
}else{
// print 2 stars
}
}