- 1

Pattan in java. I want output like this. I don't know how that's possible.

*** ** *** ** ***

25th Oct 2022, 1:38 PM
Om Devani
Om Devani - avatar
3 Answers
+ 1
I need to solve this help me
25th Oct 2022, 1:39 PM
Om Devani
Om Devani - avatar
+ 1
Om Devani Then edit your question description and add a link to your code in Code Playground and an explanation of your difficulties
25th Oct 2022, 7:13 PM
Emerson Prado
Emerson Prado - avatar
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 } }
25th Oct 2022, 1:47 PM
Niththish
Niththish - avatar