NOT ABLE TO BUILT LOGIC FOR 12 PATTERN
Hey @Rohan-Duggal-1255727097955490,
This pattern is an extension of Pattern Number 9.
While printing the stars for each row of the pyramid, you can place an alternate * and ! .
for this you can do this:
if(cst%2==1){
print(*);
} else {
print(!);
}
Please share your code on the online ide after trying the problem.
Hope it helps
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.