بيان المشكلة
Write a program that reads an integer N and prints a hollow butterfly pattern of stars.
DEMO-C-32 • Programming in C
Write a program that reads an integer N and prints a hollow butterfly pattern of stars.
A single integer N (1 <= N <= 20).
A hollow butterfly pattern.
Submit runs every public testcase in this browser. Results and code never leave this device.
3
* * ** ** * ** * ** ** * *
5
* * ** ** * * * * * * * * * ** * * * * * * * * * ** ** * *
2
* * **** * *
7
* * ** ** * * * * * * * * * * * * * * * * * ** * * * * * * * * * * * * * * * * * ** ** * *
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question