Which if statement would be true if you needed to see if x (an int) was less than 5 and y (an int) was greater than 7?

A. if ( x < 5 || y > 7 )
B. if ( x < 5 && y > 7 )
C. if ( x <= 5 || y >7 )
D. if( x < 5 && y < 7)

B. if ( x < 5 && y > 7 )

Computer Science & Information Technology

You might also like to view...

Which input statement reads the following standard input stream and stores 6.7 in a (type float), 12 in b (type int), Ben in d (type string) and % in c (type char). :

xyz 6.7Ben % 12 a) cin >> c >> c >> c >> c >> a >> d >> c >> b; b) cin >> d >> a >> b >> c >> d; c) cin >> d >> a >> d >> c >> b; d) cin >> d >> a >> c >> d >> c >> b;

Computer Science & Information Technology

Data that is taken from the keyboard during program execution is called _______ data.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology