👤

Proszę wykonać zadanie z załącznika w języku c++.

Proszę Wykonać Zadanie Z Załącznika W Języku C class=

Odpowiedź :

Odpowiedź:

#include <iostream>

#include <string>

#include <algorithm>

int main() {

   std::string word;

   std::getline(std::cin, word);

   std::reverse(word.begin(), word.end());

   

   std::cout << word;

   return 0;

}

Wyjaśnienie: