b should be true if j is the middle of the three values or if all three values are equal. cant see where im going wrong here
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
bool a, b;
int i = 1;
int j = 2;
int k = 3;
a = (i!=j|j>k);
b = (j >= i & j <= k);
Console.Write(a + ", " + b);
}
}
}
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
bool a, b;
int i = 1;
int j = 2;
int k = 3;
a = (i!=j|j>k);
b = (j >= i & j <= k);
Console.Write(a + ", " + b);
}
}
}
Vincent Maverick DuranoPosted Dec 18, 2018, 6:07 PM