Code:

#include<stdio.h>
int binar(int number, int *pbinary)
{
*pbinary = number / 2;
return number % 2;
}
main () {
int binary, bin, bina[32], counter;
int number, number2, numcheck;
printf("number ");
scanf("%d", &number);
while (number < 0 || number > 2147483647) {
printf("Enter Valid Number\n");
printf("number ");
scanf("%d", &number);
}
number2 = number;
binary = binar(number, &bin);
bina[1] = binary;
number = bin;
bina[2] = binar(number, &bin);
number = bin;
bina[3] = binar(number, &bin);
number = bin;
bina[4] = binar(number, &bin);
number = bin;
bina[5] = binar(number, &bin);
number = bin;
bina[6] = binar(number, &bin);
number = bin;
bina[7] = binar(number, &bin);
number = bin;
bina[8] = binar(number, &bin);
number = bin;
bina[9] = binar(number, &bin);
number = bin;
bina[10] = binar(number, &bin);
number = bin;
bina[11] = binar(number, &bin);
number = bin;
bina[12] = binar(number, &bin);
number = bin;
bina[13] = binar(number, &bin);
number = bin;
bina[14] = binar(number, &bin);
number = bin;
bina[15] = binar(number, &bin);
number = bin;
bina[16] = binar(number, &bin);
number = bin;
bina[17] = binar(number, &bin);
number = bin;
bina[18] = binar(number, &bin);
number = bin;
bina[19] = binar(number, &bin);
number = bin;
bina[20] = binar(number, &bin);
number = bin;
bina[21] = binar(number, &bin);
number = bin;
bina[22] = binar(number, &bin);
number = bin;
bina[23] = binar(number, &bin);
number = bin;
bina[24] = binar(number, &bin);
number = bin;
bina[25] = binar(number, &bin);
number = bin;
bina[26] = binar(number, &bin);
number = bin;
bina[27] = binar(number, &bin);
number = bin;
bina[28] = binar(number, &bin);
number = bin;
bina[29] = binar(number, &bin);
number = bin;
bina[30] = binar(number, &bin);
number = bin;
bina[31] = binar(number, &bin);
number = bin;
bina[32] = binar(number, &bin);
printf("Integer: 32-bit binary:\n");
printf("---------- --------------\n");
printf("%10d%8d%d%d%d%d%d%d%d %d%d%d%d%d%d%d%d %d%d%d%d%d%d%d%d %d%d%d%d%d%d%d%d",
number2, bina[32], bina[31], bina[30], bina[29], bina[28], bina[27], bina[26], bina[25], bina[24], bina[23],
bina[22], bina[21], bina[20], bina[19], bina[18], bina[17], bina[16], bina[15], bina[14], bina[13],
bina[12], bina[11], bina[10], bina[9], bina[8], bina[7], bina[6], bina[5], bina[4], bina[3], bina[2], bina[1]);
}

edit: no problems i fixed it