2. Determine the output of the following
program:
#include <iostream>
using namespace std; int main()
// a program illustrating the % operator {
cout<<“The remainder of 9 divided by 4
is “ << 9 % 4;
cout << “nThe remainder of 17 divided
by 3 is “ << 17 % 3;
return 0; }
3. Write a C++ program that displays the
results of the expressions:
3.0*5.0, 7.1*8.3-2.2, and
3.2/(6.1*5).
Calculate the value of these expressions
manually to verify that the displayed values
are correct.