#include <stdio.h>
#include <math.h>
int noOfFactors(int N){
int c=2;
for(int i=2;i<=(int)x;i++){
if(N%i==0){
c+=2;
}
}
if(x==(int)x)
{
c=c-1;
}
return c;
}
main(){
//Part A
int n;
printf("Factors of %d are :\n", n
); for(int i=1;i<=x;i++){
if(n%i==0){
}
}
//Part B
int N;
int a=1;
for(int i=1;i<=N;i++){
if(noOfFactors(i)>noOfFactors(a))
a=i;
}
printf("From 1 to %d the number containing maximum factors is %d", N
, a
);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CmludCBub09mRmFjdG9ycyhpbnQgTil7CglmbG9hdCB4PXNxcnQoTik7CglpbnQgYz0yOwoJZm9yKGludCBpPTI7aTw9KGludCl4O2krKyl7CgkJaWYoTiVpPT0wKXsKCQkJYys9MjsKCQl9Cgl9CglpZih4PT0oaW50KXgpCgl7CgkJYz1jLTE7Cgl9CglyZXR1cm4gYzsKfQptYWluKCl7CgkvL1BhcnQgQQoJaW50IG47CglwcmludGYoIkVudGVyIGEgbnVtYmVyIDoiKTsKCXNjYW5mKCIlZCIsICZuKTsKCWludCB4PXNxcnQobik7CglwcmludGYoIkZhY3RvcnMgb2YgJWQgYXJlIDpcbiIsIG4pOwoJZm9yKGludCBpPTE7aTw9eDtpKyspewoJCWlmKG4laT09MCl7CgkJCXByaW50ZigiJWQsICVkLCAiLCBpLCBuL2kpOwoJCX0KCX0KCXByaW50ZigiXG4iKTsKCS8vUGFydCBCCglpbnQgTjsKCXByaW50ZigiRW50ZXIgYSBudW1iZXIgTiA6Iik7CglzY2FuZigiJWQiLCAmTik7CglpbnQgYT0xOwoJZm9yKGludCBpPTE7aTw9TjtpKyspewoJCWlmKG5vT2ZGYWN0b3JzKGkpPm5vT2ZGYWN0b3JzKGEpKQoJCQlhPWk7Cgl9CglwcmludGYoIkZyb20gMSB0byAlZCB0aGUgbnVtYmVyIGNvbnRhaW5pbmcgbWF4aW11bSBmYWN0b3JzIGlzICVkIiwgTiwgYSk7Cgp9Cg==