Delete

string name1, name2;

int guess, answer;

if (name1.equals(name2))

if (guess == answer)

A. The first if statement will compare the numerical value of the two names entered to see if they are equal and the second if statement will also compare the numerical values to see if they are equal

B. The first if statement will not work correctly due to string values being used, the second if statement will correctly compare the variables guess and answer

C. The first if statement will compare the two string values to see if they are equal and the second will compare the two integer values to see if they are equal.

D. The first if statement should read if (name1 == name2) in order to properly compare the values and the second if statement will compare the numerical values to see if they are equal.

Asked by Justinsmith, Last updated: Sep 09, 2020

Request

0

Follow