Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# Return Statement

int cubedNumber = cube(5);
Console.WriteLine(cubedNumber);



Console.ReadLine();


static int cube(int num)
{
    int result = num * num * num;
    return result;
}
Source by # #
 
PREVIOUS NEXT
Tagged: #Return #Statement
ADD COMMENT
Topic
Name
8+4 =