This is a simple C++ program that prompts the user to enter their name, reads the name from the console, and then displays the name back to the user.
#include<iostream> #include<string.h> using namespace std; int main() { string Name; cout<<"\nEnter your Name: "; cin>>Name; cout<<"\nYour name is "<<Name; }To download raw file Click Here
Enter your Name: TUTORJOES Your name is TUTORJOES
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions