student that needs some help

Im taking my first comp science class and am having some trouble understanding c++

I'm going through some hw now and ive been stuck on this question for a while can anyone help explain this?

What output would be displayed by the program if the data entered is 3.0 and 5.0:

// assume a and b are float variables
cout << "Enter two numbers: "';
cin >> a >> b;
a = a - 5.0;
b = a * b;
cout << "a = " << a << endl;
cout << "b = " << b << endl;

It then asks what the 1st and 2nd output lines are?

Thanks again
Output would be -2.0 and -10.0.

a=3.0
b=5.0

a = a-5.0 = 3.0 - 5.0 = -2.0
b = a(b) = -2.0(5.0) = -10.0

To answer the last question what is cout?
Topic archived. No new replies allowed.