return1 [C#] 리턴값(반환값) return key word using System; namespace MyFirstProgram { internal class Program { static void Main(string[] args) // main method { int result1 = Multiply1(11, 12); double result2 = Multiply2(12.4, 13.7); Console.WriteLine(result1); Console.WriteLine(result2); Console.WriteLine(getMyName("jolab")); } static int Multiply1(int x, int y) { int z = x * y; return z; } static double Multiply2(double x, double y) { dou.. 2023. 3. 12. 이전 1 다음 728x90