1
0
LearningCPP/main.cpp
2022-10-07 12:18:23 +01:00

15 lines
323 B
C++

#include <iostream>
using string = std::string;
int main() {
std::cout << "Enter your name:\n";
string name;
std::cin >> name;
std::cout << "Hello, " << name << "!\n";
for (int i {0}; i < static_cast<int>(name.size()) + 8; i++) {
std::cout << "=";
}
std::cout << "\n";
}