C++ wala BOOleaN eXpressions kiyanne monawada ..??

haarshlife

Member
Jul 17, 2007
5,919
15
0
INSIDE ME... !!!
ayyala while loop eke syntax ekata mehema deela thiyenawa..

while (boolean expr)
statement;
next statement;

while (boolean expr)
{
statement 1;
statement 2;
}
next statement;

meke boolean expression kiyanne mokakda ayyala..:(
 

pga

Well-known member
  • Oct 4, 2006
    3,965
    914
    113
    haarshlife said:
    ayyala while loop eke syntax ekata mehema deela thiyenawa..

    while (boolean expr)
    statement;
    next statement;

    while (boolean expr)
    {
    statement 1;
    statement 2;
    }
    next statement;

    meke boolean expression kiyanne mokakda ayyala..:(

    it is a logic. as an example,

    while (i==5)
    {
    statement 1;
    statement 2;
    }

    while loop continues when "i" equals to 5. if "i" is not 5 then while loop will not be executed further.
     
    Last edited:

    haarshlife

    Member
    Jul 17, 2007
    5,919
    15
    0
    INSIDE ME... !!!
    ¤--bACarDi--¤ said:
    Eka machan True wenakan loop eka weda karanawa.....:D
    yes machan ...while loop eka adala wenne... PRE-TEST loops walata (execute loop body after evaluating the test).. hmm ethakota true nam witharai meka wada karanne... eth machan boolean expressions kiyanne monawada ..
    eka non-numarical ekakda ?? ekaknam char (characters) habai meka thama damnne naththe:)
    thnxx loku 4 da comment:)
     

    nuwa1

    Member
    Oct 22, 2007
    5,682
    40
    0
    iN mY BoDy
    A Boolean expression is an expression that results in a Boolean value, that is, TRUE or FALSE. For example, the value for 5 > 3 is TRUE, the value for "An apple is not a fruit" is FALSE.
    Boolean expressions are used also in document retrieval. For example, given a collection of documents we could select those according to a particular word content described by a Boolean expression such as (("cellular" OR "mobile") AND ("phone" OR "telephone")).


    Source
     

    haarshlife

    Member
    Jul 17, 2007
    5,919
    15
    0
    INSIDE ME... !!!
    nuwa1 said:
    A Boolean expression is an expression that results in a Boolean value, that is, TRUE or FALSE. For example, the value for 5 > 3 is TRUE, the value for "An apple is not a fruit" is FALSE.
    Boolean expressions are used also in document retrieval. For example, given a collection of documents we could select those according to a particular word content described by a Boolean expression such as (("cellular" OR "mobile") AND ("phone" OR "telephone")).


    Source
    ela ayya thnxx:)