Skip to content

Instantly share code, notes, and snippets.

@ivanelson
Created November 28, 2018 21:24
Show Gist options
  • Save ivanelson/856517182647852f601d68193cfee4ed to your computer and use it in GitHub Desktop.
Save ivanelson/856517182647852f601d68193cfee4ed to your computer and use it in GitHub Desktop.
3E5 - Divisível por 3 e 4
#include<stdio.h>
#include<math.h>
int main()
{
int numero;
printf("Entre com um numero inteiro: ");
scanf("%d",&numero);
if (((numero % 3)==0) && ((numero % 5)==0)){
printf("O NUMERO E DIVISIVEL POR 3 e 5\n");
}
else{
printf("O NUMERO NAO E DIVISIVEL\n");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment