Created
August 22, 2017 20:33
-
-
Save claudiainbytes/e061d3a628296e0d7695ed51c55b1b30 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Programming Quiz: Find my Seat (4-8) | |
| * | |
| * Write a nested for loop to print out all of the different seat combinations in the theater. | |
| * The first row-seat combination should be 0-0 | |
| * The last row-seat combination will be 25-99 | |
| * | |
| * Things to note: | |
| * - the row and seat numbers start at 0, not 1 | |
| * - the highest seat number is 99, not 100 | |
| */ | |
| // Write your code here | |
| for (var x = 0; x <= 25; x++ ) { | |
| for ( var y = 0; y < 100; y++ ) { | |
| console.log( x + "-" + y ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment