C++ Check-Up #1
Be sure to write out the check-up on a clean sheet of paper.
1. Name 4 data types.
2. Give the output:
int a = 6, b = 4;
int quotient = a/b;
cout << quotient << endl;
3. Copy this code and try to find the output
int anum = -6, bnum = 4, cnum = 0;
for (int i = 0; i < bnum; i++)
{
cout << anum-- + cnum++ << endl; cout << "anum = " << anum << " cnum = " << cnum << endl;}