C program to generate the divisors of a given integer

OUTPUT: