Computer Science, asked by shruti123414, 9 months ago

write a c++ program to print your name on the screen​

Answers

Answered by ravikaran2018
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 davera9srenivas
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