1
0
Fork 0

Upload files to 'stuff'

This commit is contained in:
MGislv 2021-10-24 13:45:22 +00:00
parent a6f0ccd262
commit f74c5a114c
1 changed files with 19 additions and 0 deletions

19
stuff/dividersofnum.c Normal file
View File

@ -0,0 +1,19 @@
#include <stdio.h>
int main()
{
unsigned long long n, i, j = 0;
printf("Input a number: ");
scanf("%llu", &n);
printf("\nDividers:\n");
for (i = 1; i <= n; i++) {
if (n % i == 0) {
printf("%llu\n", i);
j++;
}
}
printf("\n\nNumber of dividers: %llu\n", j);
}