Computer Science, asked by rahulaisectda3890, 1 year ago

Write a progarm in c++ to present your name

Answers

Answered by kdgp1111
1
#include <iostream.h>
#include <string.h> 
int main()
{
    std::string firstname; 
    std::cout << "Hello User, Enter your first name.\n ";
    std::cin >> firstname;
    std::cout << "Hello "<< firstname
<<". It was nice to know your name!\n";
}
Similar questions
Math, 7 months ago