Find the type of triangle from the given sides | C # implementation to find the type of triangle with the help of the sides ; Function to find the type of triangle with the help of sides ; Driver Code ; Function Call
using System ; class GFG { static void checkTypeOfTriangle ( int a , int b , int c ) { int sqa = ( int ) Math . Pow ( a , 2 ) ; int sqb = ( int ) Math . Pow ( b , 2 ) ; int sqc = ( int ) Math . Pow ( c , 2 ) ; if ( sqa == sqa + sqb sqb == sqa + sqc sqc == sqa + sqb ) { Console . Write ( " Right - angled ▁ Triangle " ) ; } else if ( sqa > sqc + sqb sqb > sqa + sqc sqc > sqa + sqb ) { Console . Write ( " Obtuse - angled ▁ Triangle " ) ; } else { Console . Write ( " Acute - angled ▁ Triangle " ) ; } } public static void Main ( String [ ] args ) { int a , b , c ; a = 2 ; b = 2 ; c = 2 ; checkTypeOfTriangle ( a , b , c ) ; } }