C# work with functions
- by gloris
Hi,
I'am new with C#. How works in C# functions?
My try:
private void Form1_Load(object sender, EventArgs e)
{
MessageBox.Show(Convert.ToString(number_p(5)));
}
public void number_p(int number)
{
int one = 1;
number = number + one;
return number;
}
Error: return, why?
Thanks