C++ programming

profileElonaire
ExamReview1.docx

/*

Exam Review 1:

Write a decision statement to test the value contained in a character

variable called code. If the value is equal to 'f', display your first name.

If the value is not equal to 'f', display your last name.

*/

#include <iostream>

#include <iomanip>

using namespace std;

int main()

{

char code;

//Get a character from the user

cout << "Enter a character: ";

cin >> code;

return 0;

}