Untitled
unknown
plain_text
10 months ago
300 B
1
Indexable
Never
#include <iostream> #include <string> using namespace std; void greeting() { cout << "привет, чувак"; } void farewell() { cout << "пока, чувак"; } int main() { setlocale(LC_ALL, "Russian"); string x; cin >> x; if (x == "greeting") { greeting(); } else farewell(); }
Leave a Comment