mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-29 20:30:44 +00:00
23 lines
No EOL
316 B
C#
23 lines
No EOL
316 B
C#
using System;
|
|
|
|
class Program
|
|
{
|
|
static void Main()
|
|
{
|
|
bool theParam = true;
|
|
int theValue = ConditionalFunction(theParam);
|
|
}
|
|
|
|
public static int ConditionalFunction(bool aValue)
|
|
{
|
|
if(aValue) {
|
|
if(aValue) {
|
|
return 4;
|
|
} else {
|
|
return 6;
|
|
}
|
|
} else {
|
|
return 2;
|
|
}
|
|
}
|
|
} |