desislava_topuzakova

05. Greeting by Name

Jan 8th, 2022
1,193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     //1. четем текст -> име на човек
  7.     //2. отпечатваме: "Hello, <name>!"
  8.  
  9.     string name; //името на човека
  10.     cin >> name;
  11.  
  12.     cout << "Hello, " << name << "!";
  13.  
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment