Write a C++ code snippet (not a full program) that does the…
Write a C++ code snippet (not a full program) that does the following: Assign your first name to a variable using the appropriate data type. (2 points) Assign your age to a variable using the appropriate data type. (2 points) Output both your name and age to the console using cout. (2 points) You should include: Proper variable names Correct data types (float, char, etc.) Syntax that compiles (quotes, semicolons, etc.) Example Output (what your code should display): My name is Alex and I am 20 years old.
Read Details