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