PHP programming assignment help

computer science

Description

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


    *

  ***

*****

  ***

    *


Related Questions in computer science category