need help

Who can help me simplify this expression

(!(a<b) && !(a>b))

i try find it in ineternet but 90% in my time i dont found that and when i find that i didnt understoond.

a == b

type your expression here

with two or three examples you could have figured it out.

Captain-B_:
(!(a<b) && !(a>b))

Just read the expression out loud to yourself.

a is not less than b AND a is not greater than b

So there's only one possible way both can be true, and that is if a and b are equal.

i know a==b but how i need write it?

i write:

#include

int main(int argc, char** argv)
{
(!(a<b)&&!(a>b));
a==b
}
but thats not work someone can write me the right code pls?

Captain-B_:
i know a==b but how i need write it?

i write:

#include

int main(int argc, char** argv)
{
(!(a<b)&&!(a>b));
a==b
}
but thats not work someone can write me the right code pls?

Of course that doesn't work. It doesn't even look like a program in any language. Where have you ever seen a program that just consisted of two expressions and no statements. A program contains a list of instructions that tell a computer what to do. Just typing random shit between brackets does not make a computer program.

Of course that doesn't work. What the hell is it supposed to do? There are no variables there named a or b. There are no instructions. Just two expressions that both resolve to either true or false.

What's going on here? You obviously aren't using an Arduino. I'm beginning to think you've missed way too much class and are trying to do an assignment. This is a forum for helping people to learn Arduino microcontrollers. This isn't a place to come to... you know, I can't figure out what you're actually doing here so I'm not sure what to write there.

For the Love of God, please read this link. Start at "Basics of C++" and work your way down.

http://www.cplusplus.com/doc/tutorial/

we start learn it in this here and that new for our class.

you can write me the right code pls or not?

Captain-B_:
you can write me the right code pls or not?

The right code to do what? You've had three or four posts here and you've posted main functions with just whatever random shit thrown in the middle and you want to know if I can write the right code. Code to do what? Nobody can tell from what you've written so far.

Go back to reply #5 and read that link. Please read that link. The answers you want lie there.

And please answer the question of how this involves Arduino. Because if it doesn't then I think we're finished here.

if you dont want help me and write the code dont write here.
i know you know the code,its why i want you write me that

Captain-B_:
if you dont want help me and write the code dont write here.
i know you know the code,its why i want you write me that

If you don't want to answer my question then you don't write here. You are wasting people's time. That is not a very nice thing to do.

The Arduino IDE (you have downloaded the IDE haven't you?) is packed with worked examples.
Please work through a few and play around with them and see how you can cobble together a set of solutions to your various problems

Captain-B_:
if you dont want help me and write the code dont write here.
i know you know the code,its why i want you write me that

Since you won't answer the question of what you want this code to do, I can only take this request literally.

To make this code right change like this:

#include <iostream>

int main(int argc, char** argv)
{
   __asm__("nop\n\t");
}

@Captain-B_

Here on the forum are volunteers that will help you to learn programming. And you will learn by doing.

If you want someone else to do your programming, please open a thread on the Gigs and collaboration section. There are real programmers coding for real money.