Can you help your digital design faculty in correcting the assignment on number conversions decimal number to its equivalent binary number. by writing a program to convert a decimal number to its equivalent binary number. Input and Output Format : Input consists of a single integer. Output is the binary equivalent of the decimal input. [Refer sample input and output for formatting specifications. Test Case 1 Input (stdin) 9 Expected Output 1001 Test Case 2 Input (stdin) -9 Expected Output -9 is not a positive integer.
using namespace std;
cout<<n<<" is not a positive integer.";