Hi I am new at programming. I ve a problem how to say unless in C.
For example:
if(TRUE)&& Unless(TRUE)
note:
I CANNOT SAY
if(TRUE)&& IF(FALSE)
i WOULD APPRECIATE ANY HELP
Hi I am new at programming. I ve a problem how to say unless in C.
For example:
if(TRUE)&& Unless(TRUE)
note:
I CANNOT SAY
if(TRUE)&& IF(FALSE)
i WOULD APPRECIATE ANY HELP
Can you describe what you are trying to do in a different way, as I can't make any sense of what you are describing.
Or perhaps you are just confused as to the combination using and/or operators?
A typical example would be:
That is, it's a leap year if the year is divisible by 4, and not divisible by 100, except (unless) it's divisible by 400. So 2000 is a leap-year, 1900 is not, 1904 and 2004 are both leap years, to give some examples.Code:leapyear = (year % 4 == 0) && !(year % 100 == 0) || (year % 400 == 0);
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Yes its ok thanks a lot