Class 26 — March 23

Practice makes perfect — Is more than a platitude — Take it to your heart


Look both ways


Final exam


Test 2


Module primal


Module take_two

  • Function parameter x is a numeric value. The function returns integer -1, 0, or 1 depending respectively whether x is negative, zero, or positive. The function does not print any output.
  • If the length of string sis odd, the function returns the middle character of s; otherwise, the function returns the two middle characters of s. The function does not print any output.

 



Warning: fopen(/l/cs1112/public_html/defs/htm/181-trailer): Failed to open stream: No such file or directory in /l/cs1112/public_html/defs/php/read.php on line 5
Unable to open file!