quiz1a - ints

Name ________________________________     Date _________

Determine the output.  Show your work.

#include <iostream.h>
main()
{

    int x;
    int y, z;
    int k = 2;
    x = -1;
    y = x + 4;
    z = x + y;
    cout << x <<"AAAA"<<'\n';
    cout << y + z << "###" << "\n";
    x = 4 + z;
   y = 5/2 * (6 - 3 * x) + z + 15/3;
    z = z + 7;
    cout << x << '\n' << "QQQ" << y;
    cout << "\n\n" << k;
    return 0;
}

OUTPUT                                                                WORK
-1AAAA
5###
6
QQQ-17

2