Question: In c# Write a function that checks whether a given positive number contains only ones and zeroes. Number: 101011 CanBeBinary: true Number: 101510 CanBeBinary: false
Write a function that checks whether a given positive number contains only ones and zeroes. Number: 101011 CanBeBinary: true Number: 101510 CanBeBinary: false static bool CanBeBinary (int number)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
