int dec_bin(int n)// function Definition
{
int array[10],i=0; // variable declaration and initialization
while(n>0) // iterate till the n value > 0
{
array[i++] = n%2; // store each reaminder into array
n=n/2; // division
}
while(i>0) // iterate till the condition remains true
printf("%d", array[--i]); // printing the elements from the last index
printf("\n");
} // dec_bin End
main()//Main function begining
{
int n=0;
printf("Please Enter any possitive number :");
scanf("%d",&n);
dec_bin(n);//function calling
}// Main function Ending