Skip to content

Instantly share code, notes, and snippets.

@dynamitechetan
Created August 8, 2016 16:02
Show Gist options
  • Save dynamitechetan/782297d131d1abc4ea97905d0322c182 to your computer and use it in GitHub Desktop.
Save dynamitechetan/782297d131d1abc4ea97905d0322c182 to your computer and use it in GitHub Desktop.
This is for my freinds!.. Sparse Number Program in C
int main()
{
int x,y,z,a,b,c,d;
scanf("%d",&x);
y=0;
if (x & (x>>1))
y=1;
if(y!=1)
printf("TRUE");
else
printf("FALSE");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment