write a c++ program to print your name on the screen
Answers
Answered by
0
Answer:
#include <iostream>
#include <string>
int main()
{
std::string firstname;
std::cout << "Enter your first name.\n ";
std::cin >> firstname;
std::cout << "Hello " << firstname
<<". Thank you!\n";
}
Answered by
0
#include <iostream>
#include <string>
int main()
{
std::string firstname;
std::cout << "Enter your first name.\n ";
std::cin >> firstname;
std::cout << "Hello " << firstname
<<". Thank you!\n";
}
Similar questions