#include <stdio.h>
int main()
{
int n, c, k;
n = 10;
printf("%d in binary number system is:\n", n);
for (c = 31; c >= 0; c--)
{
k = n >> c;
if (k & 1)
printf("1");
else
printf("0");
}
printf("\n");
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: