#include <iostream>
using namespace std;
char tablica[3];
char odwrocona[3];
int main()
{
cout << "Podaj liczbe 3-cyfrowa: "; cin >> tablica;
for (int i = 0; i < 3; i++)
odwrocona[i] = tablica[2 - i];
}
cout << odwrocona[i];
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
#include <iostream>
using namespace std;
char tablica[3];
char odwrocona[3];
int main()
{
cout << "Podaj liczbe 3-cyfrowa: "; cin >> tablica;
for (int i = 0; i < 3; i++)
{
odwrocona[i] = tablica[2 - i];
}
for (int i = 0; i < 3; i++)
{
cout << odwrocona[i];
}
}