This methodology begins by checking for the enter quantity, if its zero, it return { “” } , if not, it shops the quantity modulus 2 in a variable referred to as ‘s’ and print ‘s’ concatenated to the recursive methodology { toBinary} with enter equals quantity / 2 { to Binary(quantity/2) }.