#include<stdio.h>
int main(){
    int n=12,i;
    for (i=1;i<=12;i++){
        if(n%i==0){
            printf("%d\n",i);
        }
    }
}

Embed on website

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