#include<iostream>
#include <string>
usingnamespace std;
int main()
{ string rslt;
int a,b,c;
cout<<"\nProgram to Convert Decimal Number to Binary Number :";
cout<<"\n******* ** ******* ******* ****** ** ****** ******";
cout<<"\n\nEnter A Number : ";
cin>>a;
b = a;
do
{ c = b % 2; // Get least significant digit
rslt.insert (0, 1, c+'0'); // insert ASCII value
b /= 2;
} while (b > 0);
cout<<"\nThe Binary Equivalent of ("<<a<<") is : " << rslt << endl;
system ("pause");
}