Last active
December 16, 2017 18:34
-
-
Save desinas/57021ded7a8f308a6b5f14a6de9416c4 to your computer and use it in GitHub Desktop.
Find my seat Quiz (4-8) of Udacity FEWD
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 row= 0; row < 26; row++) { | |
| for (var seat= 0; seat < 100; seat++) { | |
| console.log(row + "-" + seat); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What Went Well
Feedback: Your answer passed all our tests! Awesome job!