Forwarded from Юлія Блокчейн
#include <iostream>
#include <string>
void zubazhinnya(std::string& str) {
for (char& c : str) {
if (isalpha(c)) {
c = tolower(c); // переводимо все букви в малі для зубажіння
}
}
}
int main() {
std::string text;
std::cout << "ВВЕДІТЬ ТЕКСТ, ЯКИЙ ПОТРІБНО ЗУБАЖИТИ: ";
std::getline(std::cin, text);
zubazhinnya(text);
std::cout << "ЗУБАЖЕНИЙ ТЕКСТ: " << text << std::endl;
return 0;
}
💋22 1
ПА МАЇЙ ІНФАРМАЦИЇ ЛЕСЯ УКРАЇНКА БУЛА ДЕПУТАТАМ НА ВАЛИНІ ВІД ФРАКЦИЇ БАТЬКІВЩИНА
💋28 5🍓1