Posts by Gabriel Henrique dos Santos Si • 9 points
1 post
-
0
votes1
answer48
viewsQ: I don’t understand why it doesn’t show all the cousins in this range
#include <stdio.h> int eh_primo(int x){ int i; int cont; for (i=1;i<=x;i++){ if (x % i == 0){ cont +=1; } } if (cont == 2 || cont == 1){ return 1; }else{ return 0; } } void…
casked Gabriel Henrique dos Santos Si 9