write a program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in reverse binary

See Answers (1)

Suggested Answer

Example :Steps:#include<stdio.h>Int main(void){int result;int x;cin>>x;while(x > 0 )result = x%2x = x/2cout<<result}Output:X = 6,Result = 011How to reverse binary ?With the aid of bitwise right shift and bitwise left shift operations, each bit in n's binary representation is obtained one by one, and they are accumulated in result.You can learn more about reverse binary from the given linkhttps://brainly.com/question/28862470#SPJ4

Related Question in Computers and Technology