[Solved] My double function is not working correctly [closed]


You are missing the data types. The right code is:

using System;
namespace Application
{
    class MainClass
    {
        public int times2 (int number)
        {
           return number * number;
        }

        public static void Main (string[] args)
        {
            times2(5);
        }
    }
}

3

solved My double function is not working correctly [closed]