Created
January 31, 2019 11:12
-
-
Save giorgianav/7c1b2201e0a70fbe2d3ff02ce781e14c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () { | |
| int a; | |
| scanf (“%d”, &a); | |
| if ((a & (a - 1)) == 0) | |
| printf (“Numarul este putere a lui 2.”); | |
| else | |
| printf (“Numarul nu este putere a lui 2.”); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment