Skip to content

Instantly share code, notes, and snippets.

@FelipeGrijo
Last active February 24, 2017 20:18
Show Gist options
  • Save FelipeGrijo/00abe6978cfb32e8bc31eac7a015064d to your computer and use it in GitHub Desktop.
Save FelipeGrijo/00abe6978cfb32e8bc31eac7a015064d to your computer and use it in GitHub Desktop.
1) Entrar com um número e imprimi-lo caso seja maior do que 20.
//https://gist.github.com/FelipeGrijo
#include <stdio.h>
int main()
{
int Numero;
printf("Exercicio 1\nDigite um numero:");
//fflush(stdin);
scanf("%d",&Numero);
if(Numero > 20){
printf("%d\n",Numero);
}
//system("pause");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment