CMU 15-112 Summer 2020: Fundamentals of Programming and Computer Science
Collab 2 (Due Tue 19-May, at 11:59pm)




  1. carrylessAdd [35pts]
    First, read the first page (page 44) from here about Carryless Arithmetic. Fun! Then, write the function carrylessAdd(x, y) that takes two non-negative integers x and y and returns their carryless sum. Here are a couple examples:
         carrylessAdd(785, 376) returns 51
         carrylessAdd(865, 23) returns 888
    

    Make sure you handle the case where the numbers are different lengths!