if
Statement Examples
(If-Then Form)
if
(age < 18)
cout << “Not an eligible”;
cout << “voter.” << endl;
if
(result < 0.0)
{
cout << “Check box 24A” << endl;
result = 0.0;
}