Write a conditional that decreases the variable shelfLife by 4 if the variable outsideTemperature is greater than 90.

Write a conditional that decreases the variable shelfLife by 4 if the variable outsideTemperature is greater than 90.

LANGUAGE: Visual Basic

CHALLENGE:

Write a conditional that decreases the variable shelfLife by 4 if the variable outsideTemperature is greater than 90.

SOLUTION:

If outsideTemperature > 90 Then
    shelfLife = shelfLife - 4
End If


Add comment