Find number of factors of N when location of its two factors whose product is N is given | Java program to implement the above problem ; Function to find the number of factors ; print the number of factors ; Driver code ; initialize the factors position
class GFG { static void findFactors ( int a , int b ) { int c ; c = a + b - 1 ; System . out . print ( c ) ; } public static void main ( String [ ] args ) { int a , b ; a = 13 ; b = 36 ; findFactors ( a , b ) ; } }