Search:

Type: Posts; User: aejr120

Search: Search took 0.00 seconds.

  1. Thread: C++ - loops

    by aejr120
    Replies
    11
    Views
    2,974

    True. Remove the second variable, it achieves the...

    True. Remove the second variable, it achieves the same result with only one variable.

    int main()
    {
    int num = 0;
    int total = 0;

    do{
    cout << "Enter a number: " <<...
  2. if ((mark >=0) && (mark

    if ((mark >=0) && (mark <=25))
    cout << "cat_1";



    This does nothing to update the integer variables, this only displays "cat_1" on the screen. Instead, increment the variables...
Results 1 to 2 of 2