#include<iostream.h>
void tobinary(int num){
int rem;
if(num!=0){
rem=num%2;
tobinary(num/2);
cout<<rem;}//IF
}//TOBINARY
void main(){
int num;
cout<<"ENTER A DECIMAL NUMBER: ";
cin>>num;
cout<<"THE BINARY NUMBER IS: ";
tobinary(num);
}//MAIN