//C implementation of Naive
//method to print all divisors
#include <stdio.h>

//Function to print all divisors
void printDivisors(int n)
{
    for(int i=1;i<=n;i++)
        if(n%i == 0)
            printf("%d ",i);
}

//Driver Code
int main() 
{
    printf("the divisors of 100 are: ");
    printDivisors(100);
    
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: