INQ241A
Mobile Apps

Day 3 Notes

Variables

Review Variables

    function main()
      var distance := 100
      ♻turtle → forward(distance)
      ♻turtle → back(distance)
      ♻turtle → right turn(90)
      ♻turtle → forward(distance)
      ♻turtle → back(distance)
    end function

Reusing Variables

Updating Variables

Accumulating Variables

Quiz

Activity