Answers for "cin statement c++"

C++
2

cin statement c++

#include <iostream>
using namespace std;

int main() {
  string nameEntered;
  cout << "Enter your name: \n";
  cin >> nameEntered;
  cout << "So, your name is " << nameEntered;
  return 0;
}
Posted by: Guest on February-23-2021

Browse Popular Code Answers by Language