09-16 Class Notes CS 107

09-16 Class Notes CS 107 - for( int j=1; j<10;...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Program #3 has been posted (still under construction) How did you do on the program? A: didn't get it B: Got just a part C: Got most of it D: Should get full credit E: Did extra credit Announcements: Sample for progam 3: (thanks Adam and Willie) 09-16 Class Notes CS 107 Friday, September 16, 2011 3:48 PM CS 107 Fall 2011 Page 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Questions? looping, break and continue statements, loop inside a loop System.out.println("Mult. Table: "); System.out.printf("%3d", i * j);
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for( int j=1; j<10; j++) { } System.out.println(); for( int i=1; i<10; i++) { } System.out.println("\nDone."); Last Time: i. How to display only part of the multiplication table ii. How to break out of a triply-nested loop. "looping the loop" some more: What each kind of loop is best for: while loop: do loop: for loop: Motivation: Transfer of control: square a number Methods: Today: CS 107 Fall 2011 Page 2...
View Full Document

Page1 / 2

09-16 Class Notes CS 107 - for( int j=1; j<10;...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online