Find two vertices of an isosceles triangle in which there is rectangle with opposite corners ( 0 , 0 ) and ( X , Y ) | C # program to find two vertices of an isosceles triangle in which there is rectangle with opposite side ( 0 , 0 ) and ( x , y ) ; Function to find two vertices of an isosceles triangle in which there is rectangle with opposite side ( 0 , 0 ) and ( x , y ) ; Required value ; ; print x1 and y1 ; print x2 and y3 ; Driver code ; Function call
using System ; class GFG { static void Vertices ( int x , int y ) { int val = Math . Abs ( x ) + Math . Abs ( y ) ; Console . Write ( val * ( x < 0 ? - 1 : 1 ) + " ▁ 0 ▁ " ) ; Console . Write ( "0 ▁ " + val * ( y < 0 ? - 1 : 1 ) ) ; } public static void Main ( String [ ] args ) { int x = 3 , y = 3 ; Vertices ( x , y ) ; } }