#include "stdio.h" main() { int a,b; for(a=1;a<=360;a++) for(b=1;b<=360;b++) { if(a*b==360) printf("%d,%d\n",a,b); } }