Added comments to the code of problems 36, 37, 38, 39 and 40 in C.
Added solutions for problems 36, 37, 38, 39 and 40 in python and C