Skip to content

Instantly share code, notes, and snippets.

@claudiainbytes
Created August 22, 2017 20:33
Show Gist options
  • Select an option

  • Save claudiainbytes/e061d3a628296e0d7695ed51c55b1b30 to your computer and use it in GitHub Desktop.

Select an option

Save claudiainbytes/e061d3a628296e0d7695ed51c55b1b30 to your computer and use it in GitHub Desktop.
/*
* 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