Find number of factors of N when location of its two factors whose product is N is given | C ++ program to implement the above problem ; Function to find the number of factors ; print the number of factors ; Driver code ; initialize the factors position
#include <bits/stdc++.h> NEW_LINE using namespace std ; void findFactors ( int a , int b ) { int c ; c = a + b - 1 ; cout << c ; } int main ( ) { int a , b ; a = 13 ; b = 36 ; findFactors ( a , b ) ; return 0 ; }