these three are from my quiz....
only ones i dont know...
of course the first three
can anyone help me out?
1. Declare 3 variables of type 'int', all in one statement, with the following names, in that order: 'result' 'first' 'second' Note: don't forget the ';' at the end of the statement - 1 point(s)
2. Code an 'assignment' statement which stores the mutiplication of 'first' and 'second' (in that order) into 'result'. - 1 point(s)
3. Use a 'cout' statement to print the value of the variable 'result' and nothing else: no 'new line' character at the end, no description of the value in front. (use appropriate spaces around the %26lt;%26lt; operator) - 1 point(s)
C++ questions (quiz)?
I have no idea.
1.
int result, first, second;
2.
result = first * second;
3.
cout %26lt;%26lt; result;
Not sure about cout. Never did any c++.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment