Write a PHP program which will print the following. Make sure to use if-then-else case statement. Do not use loop.
1. Square
*******
* *
* *
*******
2. Triangle
*
***
*****
3. Upside-down triangle
*****
***
*
4. Rhombus
*
***
*****
***
*
Write a PHP program which will print the following. Make sure to use switch case statement. Do not use loop.
1. Square
*******
* *
* *
*******
2. Triangle
*
***
*****
3. Upside-down triangle
*****
***
*
4. Rhombus
*
***
*****
***
*
Get Free Quote!
279 Experts Online