Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <typeinfo>
unsigned int dec2bin(unsigned int n) {
//Calculate and output
int k = 2;
std::cout << "Reverse binary representation is: ";
std::cout << n%2;