////////////////convert decimal into binary//////////////////
#include <iostream.h>
#include <conio.h>
void asif(int n);////////fun decaleration
void main()
{int a;
cout<<"enter decimal no\n"<<endl;
cin>>a;
asif(a);
getch();
} ///////////main fun is end
void asif(int n)
{
if(n>0)
{
asif(n/2);
cout<<(n%2);
}
} ////fun definaition end
0 comments:
Post a Comment