Skip to content

Instantly share code, notes, and snippets.

@schweigert
Created November 23, 2015 16:25
Show Gist options
  • Select an option

  • Save schweigert/32a9411f2f2bf33c5be5 to your computer and use it in GitHub Desktop.

Select an option

Save schweigert/32a9411f2f2bf33c5be5 to your computer and use it in GitHub Desktop.
#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