Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php
  2. /**
  3. * Live Coding Section
  4. * - You don't need to finish all of this.
  5. * - Using the internet to look things up is encouraged.
  6. */
  7.  
  8. echo 'Live Coding Section starts here! <br/><br/>';
  9.  
  10. // Write three functions that compute the sum of the numbers in a given list using: a for-loop, a while-loop, and then recursion.
  11.  
  12.  
  13.  
  14. // Write a function that combines two lists by alternatingly taking elements. For example: given the two lists (a, b, c) and (1, 2, 3), the function should return (a, 1, b, 2, c, 3).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement