Decimal to binary transformation in c Input:
    Enter a decimal number: 101

Output:
    The binary number is : 1100101

I have solved this way-&gt;
#include &lt;stdio.h&gt;
int main(void){

int input=get_input();
long long complete_integer=binary_conversion(input);
reverse_digits(complete_integer);
}
int get_input() {
int number = 0;
printf(&quot;Enter a decimal number: &quot;);
scanf(&quot;%d&quot;,&amp;number);
return number;
}
int binary_conversion(int number) {
long long complete_integer = 0;
int base=2;

while (number != 0) {
//Take the last digit from the integer and push the digit back of complete integer
complete_integer = complete_integer * 10 + number%base;
number /= base;
}
printf(&quot;Completed integer number : %d\n&quot;,complete_integer);
return complete_integer;
}

int reverse_digits(long long complete_integer) {
    int binary = complete_integer;
    int last_digit = 0;

    while(binary != 0) {

        last_digit = last_digit * 10 + binary % 10;
        binary /= 10;
    }
    printf(&quot;The binary number is: %d&quot;,last_digit);
}

I am here for: What about my comments and indentations? Will I face any problem for some conditions? Would you propose a better simplification by using my program?
There is no indentation except in the function revers_digits(). The indentation within that function is fine, you should correct the rest of the program because it is basically unreadable.
While this may compile in a free online compiler, the code is broken for 2 reasons. The first is that in a one file program such as this one for the C programming language main() should be the last function in the file so that all of the other functions are defined previously. There is a workaround for this using function prototypes.
The second reason the code is broken is that binary_conversion(int number,int value) is declared with 2 variables, but is only called with one (remove value since it doesn't seem to be necessary).