Created
November 23, 2015 16:25
-
-
Save schweigert/32a9411f2f2bf33c5be5 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(void){ | |
| int a = 0; | |
| scanf ("%d", &a); | |
| if (a > 10) puts ("A é maior que 10"); | |
| else puts ("A é menor ou igual a 10"); | |
| if (a >= 0){ | |
| while (a != 0){ | |
| a--; | |
| printf ("A = %d, A é diferente de 0\n", a); | |
| } | |
| } | |
| for (a = 0; a < 1000; a++){ | |
| printf ("%d :: A\n", a); | |
| } | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment