HOW TO SOLVE THIS c++ statement

how to write the C++ statement to display

will you get an “A+” in TCP1121?