1. 程式人生 > >【C#學習筆記】函數調用

【C#學習筆記】函數調用

() void color space c# ram 學習 pro urn

using System;

namespace ConsoleApplication
{
    class Program
    {
        static int Add(int a, int b)
        {
            return a + b;
        }

        static void Main(string[] args)
        {
            int a = 1,b = 2;
            int c = Add(a, b);
            Console.Write(c);
            Console.Read();
        }      
    }
}

【C#學習筆記】函數調用