What Does This Loop Print?

methsri

Well-known member
  • Dec 17, 2007
    3,882
    240
    63
    40
    In ThE R3AL W0RLD
    haarshlife said:
    meke ayyala 1-5 wenakan print wenawa .... neda eka wadinne
    1
    2
    3
    4
    5
    kiyala neda endl; thiyena nisa

    mehema thibunoth print wenne

    1
    1
    1
    1
    1

    ===================================
    oyata oye widiyata oni nan programm eka

    int i =1;
    while(i < 6 )

    {
    cout << “Line number” << i << endl;

    i++;
    }


    put it like this!!!!!
     

    haarshlife

    Member
    Jul 17, 2007
    5,919
    15
    0
    INSIDE ME... !!!
    methsri said:
    mehema thibunoth print wenne

    1
    1
    1
    1
    1

    ===================================
    oyata oye widiyata oni nan programm eka

    int i =1;
    while(i < 6 )

    {
    cout << “Line number” << i << endl;

    i++;
    }



    put it like this!!!!!
    hmm ...thnxx bro :) :)
     

    pga

    Well-known member
  • Oct 4, 2006
    3,965
    914
    113
    methsri said:
    mehema thibunoth print wenne

    1
    1
    1
    1
    1

    ===================================
    oyata oye widiyata oni nan programm eka

    int i =1;
    while(i < 6 )

    {
    cout << “Line number” << i << endl;

    i++;
    }


    put it like this!!!!!

    :yes: or

    int i =0;
    while(i < 5 )
    cout << “Line number” << i++<< endl;