👤

Cum aflu prima jumatate a unui cuvant in C++?

Răspuns :

#include <iostream>

int main()

{

   std::string text;

   std::cin >> text;

   

   for(unsigned i = 0; i < text.size() / 2; ++i)

       std::cout << text[i];

}