Posts by Davi Nunes • 1 point
1 post
-
-1
votes1
answer40
viewsQ: Question for in C (I’m still learning)
#include <stdio.h> int main (){ int i, n; printf("Digite um numero: "); scanf("%d", &n); int a; a = n; for ( ; a>=0; a--){ if(n%a==0){ i++; } } printf("%d", i); } This is my code, it’s…