Ответ:
#include <iostream>
using namespace std;
int main()
{
int n, k;
cout << "Input number" << endl;
cin >> n;
while (n != 0)
k*=10;
k += n % 10;
n = n / 10;
}
cout << k << endl;
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
#include <iostream>
using namespace std;
int main()
{
int n, k;
cout << "Input number" << endl;
cin >> n;
while (n != 0)
{
k*=10;
k += n % 10;
n = n / 10;
}
cout << k << endl;
return 0;
}