TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
taks kamps
NA
39
7k
Logical and relational expressions
Dec 1 2018 5:33 AM
a should be true if i and j are not equal or j is greater than k
b should be true if j is middle of the three values or if all values are equal
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 = i > j || j < k && i == j;
Console.Write(a +
", "
+ b);
}
}
}
Reply
Answers (
1
)
condditional statements help?
How to hide the DOM element using Jquery