using System;
namespace LearnCS
{
class Program
{
static int GetStuff() {
int x = 10;
int y = 20;
int z = (x + y);
return z;
}
static int MultipBy2() {
int multiplied = (GetStuff() * 2);
return multiplied;
}
static void Main(string[] args)
{
//Console.WriteLine(GetStuff());
Console.WriteLine("Result from MultipBy2 Method: " + MultipBy2());
}
}
}
No comments:
Post a Comment