Computer Science, asked by hassanabbasi7824, 3 months ago

write a C++ program that takes a string from user .​

Answers

Answered by saumya200619
0

Answer:

string firstName;

cout << "Type your first name: ";

Explanation:

Answered by asibulhasan23
0

Answer:

A C++ program that takes a string from user

Explanation:

#include<iostream>

#include<string.h>

using namespace std;

int main()

{

 string s;

 cin>>s;

 cout<<"The string is "<<s;

}

Similar questions