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
anti virus
NA
17
3.5k
bit of maths problem
Dec 15 2018 5:17 PM
output 2,4,6
basic maths but i just seem to be able to get the correct numbers to get the output
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
int a, b, c;
a = -1;
b = -2;
c = 2;
b = 2 * a * b;
a = (c - b) * 2;
c = a + b;
Console.Write(a + ", " + b + ", " + c);
}
}
}
Reply
Answers (
1
)
adding a nested if statement
how to declare a method