76. WAP to print binary of number from 50 to 60
#include<stdio.h>
void
main()
{
printf("WAP to print binary of number from 50 to 60\n");
int
i,j;
for(i=50;i<=60;i++)
{
printf("%d :: ",i);
for(j=31;j>=0;j--)
printf("%d",i>>j&1);
printf("\n");
}
}
Comments
Post a Comment