A positive integer is entered through the keyboard, write a function to find the Binary equivalent of this number: (1)…