#include<stdio.h> int main(){ int n=6,n2=12,hcf=1; int i; for (i=1;i<=n2;i++){ if((n%i==0) && (n2%i==0)){ printf("%d\n",i); } } }
To embed this project on your website, copy the following code and paste it into your website's HTML: