Find the type of triangle from the given sides | Function to find the type of triangle with the help of sides ; Driver Code ; Function Call
function checkTypeOfTriangle ( a , b , c ) { let sqa = Math . floor ( Math . pow ( a , 2 ) ) ; let sqb = Math . floor ( Math . pow ( b , 2 ) ) ; let sqc = Math . floor ( Math . pow ( c , 2 ) ) ; if ( sqa == sqa + sqb sqb == sqa + sqc sqc == sqa + sqb ) { document . write ( " " ) ; } else if ( sqa > sqc + sqb sqb > sqa + sqc sqc > sqa + sqb ) { document . write ( " " ) ; } else { document . write ( " " ) ; } } let a , b , c ; a = 2 ; b = 2 ; c = 2 ; checkTypeOfTriangle ( a , b , c ) ;