AP Computer Science Java Language - The Nested FOR Loop

in #tutorials7 years ago

APCSLogo.png

The nested FOR loop is a quick way to do a lot of things. it is essential in programming! Here are a few basic examples and why it is useful...

Example 1 - Single Loop

  • Math
    Capture.PNG
  • Computer Science
    Capture3.PNG

Example 2 - Double Loop

  • Math
    Capture2.PNG
  • Computer Science
    Capture5.PNG

Question of the Day

Have the computer display the following:
....1
...22
..333
.4444
55555

Solution (Programmed on Browxy.com)


BAR.png

All SteemitEducation Posts

Physics

Kinematics Video, Circular Motion Video, Forces in 1 & 2 Dimensions Videos, Kinematics Full Lesson, Circular Motion and Gravitation Full Lesson

Computer Science

1, 2, 3, 4, 5, 6, 7, 8, 9, 10

SAT

Asymptotes, Composite Functions, Contest 1 - Area, Contest 1 – Winners and Solution, PEMDAS, Systems of Equations, Functions, Exponents, Contest 2 - More Functions, Contest 2 – Winners and Solution, Percents, The Interest Equation, All About Division, Contest 3 - Factoring, Contest 3 – Winners and Solution, Fractional and Negative Exponents, Basic Trig, Contest 4 - Math Vocab

General Math

Basics of Algebra, Trigonometry Video, Proof of Quadratic Formula, Factoring Video, Unions and Intersections, Surface Area of a Cylinder, Substitution Video, Combinatorics Basics

Graphing from Algebra to Calculus

Algebra 1, Algebra 2, Pre-Calculus, Calculus

Piloting Airplanes

Introduction, Preflight, Requirements, Instruments, Take-Offs and Landings, Why a Plane Can Fly, Reading the Runway, Maneuvers

Other

Engineering (Isometric) Drawing, Pressure & SCUBA Diving

BAR.png

Thank you for your views Steemers! The support is much appreciated! Learn much and best wishes! Your pal ~ hansenator

STMEdu.gif

SteemWave.gif

Sort:  

Thanks a lot for your Java lesson and hope you will present more and more lessons regarding this subject.

I will try. The class ends in may, so I should have many more!