mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
24 lines
No EOL
350 B
C#
24 lines
No EOL
350 B
C#
using System;
|
|
|
|
class Program
|
|
{
|
|
static int Main()
|
|
{
|
|
bool theParam = true;
|
|
int theValue = ConditionalFunction(theParam);
|
|
return (theValue == 4) ? 0 : 1;
|
|
}
|
|
|
|
public static int ConditionalFunction(bool aValue)
|
|
{
|
|
if(aValue) {
|
|
if(aValue) {
|
|
return 4;
|
|
} else {
|
|
return 6;
|
|
}
|
|
} else {
|
|
return 2;
|
|
}
|
|
}
|
|
} |