Hello,
Been looking into learn C# programming so i can get a career into programming, my question is trying to wrap my brain around method, if anyone can give me an easy example of a method such as passing a int or string from a created method and moved the parameter to the main method, and explain a little (very easy terms if you can because i am still new). Thank you, my code is below but it is not finished, if you can finish it as an example and explain what i missed that would be helpful to if not its ok.
Code:
class Program
{
static void second (int number)
{
int one;
string ones;
Console.WriteLine("please enter first number");
ones = Console.ReadLine();
one = Int32.Parse(ones);
}
static void Main()
{
Console.WriteLine("printing out different method: "+ );
}
}
}