Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
Fundamentals
Code
Diff
  • using System;
    
    public class Kata
        {
            public  static int Opposite(int number)
            {
                return -number;
            }
        }
  • 11
    using System;
    
    22
    33
    public class Kata
    
    44
        {
    
    55
            public  static int Opposite(int number)
    
    66
            {
    
    7
                // Happy Coding
    
    8
                return number*-1;
    
    7+
                return -number;
    
    99
            }
    
    1010
        }