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
6.8k
if -else inclusive
Dec 1 2018 3:46 PM
Should output success if I is within 5 units of j… im getting failure with this code
using
System;
namespace
HelloWorld
{
class
Program
{
static
void
Main(
string
[] args)
{
string
output;
int
i = 10;
int
j = 10;
if
(i == j + 5|| (i == j - 5))
{
output =
"Success"
;
}
else
{
output =
"Failure"
;
}
Console.WriteLine(output);
}
}
Reply
Answers (
1
)
in xamarin forms how to save sqlite database online anywhere
Delete a value from a column referred to two different table