Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
246 B
2
Indexable
Never
#include <stdio.h>
int main() {
   int n, k = 1, a;
   scanf("%d", &n);
   if (n<2) printf("1\n");
   else {
      a=2;
      while(a<=n){
         if(n%a == 0) k++;
         a++;
      }
      printf("%d\n", k);
   }
   return 0;
}