logotransparent.png

Legion of Learners

www.lol-101.com

  • Home

  • Classrooms

  • Courses

  • About Us

    • Executive Team
    • Board Members
  • Resources

  • More

    Use tab to navigate through the menu items.
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    sfolax6776
    Jun 27, 2019
      ·  Edited: Nov 16, 2019

    5.10 When can I reuse the loop control variable i ?

    in Introduction to Java

    A. Introduction

    When writing multiple loops, sometimes the loop control variable i can be reused, sometime not. Have you figured out when it's okay and when it's not? This has to do with the scope of variables.

    B. Watch(Slides)

    C. Try:

    E6.13 Write a program that prints all powers of 2 from 2^0 up to 2^20.

    0 comments
    0
    0 comments

    Questions? Email us at legionoflearners@gmail.com or join our WeChat group!

    • lol-101dotcom

    ©2020 Legion of Learners