Write a progarm in c++ to present your name
Answers
Answered by
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";
}
#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