Adding an Else


My program looks like this.

    $items = 10;
    if($items > 5) {
      echo "You get a 10% discount!";
    else {
        echo "You get a 5% discoun!";

Oops, try again. Did you set your else statement to echo or print 'You get a 5% discount!' ? Don't forget your semicolon at the end!


discoun // check spelling


no se que tengo malo con mi código si me pueden ayudar por favor


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.