Advertisement
Guest User

Untitled

a guest
Oct 24th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. /*
  2. * Programming Quiz: Find my Seat (4-8)
  3. *
  4. * Write a nested for loop to print out all of the different seat combinations in the theater.
  5. * The first row-seat combination should be 0-0
  6. * The last row-seat combination will be 25-99
  7. *
  8. * Things to note:
  9. * - the row and seat numbers start at 0, not 1
  10. * - the highest seat number is 99, not 100
  11. */
  12.  
  13. // Write your code here
  14.  
  15. for (var row = 0; row < 26; row ++ ){
  16. for (var seat = 0; seat < 100; seat ++ ){
  17. console.log(row +'-'+ seat);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement