Clunker Motors Inc. is recalling all vehicles from model years 2001-2006. Given a variable modelYear write a statement that prints the message “RECALL” to standard output if the value of modelYear falls within that range.

Clunker Motors Inc. is recalling all vehicles from model years 2001-2006. Given  a variable  modelYear write a statement  that prints the message  “RECALL” to standard output  if the value  of modelYear falls within that range.

LANGUAGE: C++

CHALLENGE:

Clunker Motors Inc. is recalling all vehicles from model years 2001-2006. Given a variable modelYear write a statement that prints the message “RECALL” to standard output if the value of modelYear falls within that range.

SOLUTION:


if(modelYear > 2000 && modelYear < 2007){
     cout << "RECALL";
}else{

}

Add comment