chore: add greetings! program

main
CrimsonTome 2023-02-06 09:44:07 +00:00 committed by Rowan Clark
parent 8d207f2c9f
commit 117d023513
No known key found for this signature in database
GPG Key ID: F620D51904044094
1 changed files with 17 additions and 0 deletions

17
Greetings!/main.cpp Normal file
View File

@ -0,0 +1,17 @@
#include <iostream>
#include <string>
using namespace std;
int main(){
string greeting = "";
cin >> greeting;
int length = greeting.length() - 2;
cout << "h";
for (int x = 0; x<length * 2; ++x)
{
cout << "e";
}
cout << "y" << endl;
return 0;
}