CodeClerks

C and C++ program to convert Decimal to Binary



Enter a reason for deleting this comment

C and C++ program to convert Decimal to Binary

This C++ Program converts decimal to binary value. The program takes a number as the input and prints out the binary form of the number using a recursive function which is given the number as the parameter.



#include
using namespace std;

void binary(int num)
{
    int rem;

    if (num

Comments

Please login or sign up to leave a comment

Join