Question: Given the following, write the statement to store the characters entered by the user, up until the newline character, in the name variable; and consume
Given the following, write the statement to store the characters entered by the user, up until the newline character, in the name variable; and consume the newline character. string name = ; cout << Enter your name: ;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
