csharp int positive only

Code Example - csharp int positive only

                
                        int y = Math.Abs(x);  //If x is 1, y is one. If x is -1, y is 1
                    
                
 

csharp make a negative number positive

                        
                                myInt = myInt * -1