Choose The Best Answer: Programming II Homework 2 COMP012 Group 1003fall 2013 Due Sunday, 22 November
Choose The Best Answer: Programming II Homework 2 COMP012 Group 1003fall 2013 Due Sunday, 22 November
6. If there is more than one statement in the block . 10 : In C++, the condition ( 4 > y > 1 ):
of a for loop, which of the following must be placed a. Evaluates correctly and could be replaced by
at the beginning and the ending of the loop block ( 4 > y && y > 1 ).
Page 1
Programming II Homework 2
COMP012 Group 1003Fall 2013
Due Sunday, 22 November
Q3) write a program that use for statements to print your first name and last name
.Print your first name at first 3 loops and you last at the last 3 loops -
int main()
{
return 0;
}
Page 2