Program to find the LCM of two prime numbers | Function to return the LCM of two prime numbers ; If the two numbers are equal then return any one of a and b ; Else return product of numbers ; Given two numbers ; Function Call
function findLCMPrime ( a , b ) { if ( a == b ) { return a ; } return a * b ; } let a = 3 , b = 5 ; document . write ( findLCMPrime ( a , b ) ) ;