Write an if statement that assigns 15 to x when y is


Question 1: Write an if statement that assigns 15 to x when y is greater than or equal to or 7.

(Use single spaces between operands, operators and statements)

Question 2: How many times will "jump" be displayed in the following program segment? If the loop doesn't terminate, write "infinite".

int count = 1;

while (count < 5)

{

cout << "jump" << endl;

count++;

}

Describe each and every question in depth with examples.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write an if statement that assigns 15 to x when y is
Reference No:- TGS0946568

Expected delivery within 24 Hours