Відповідь:
#include <iostream>
#include <cstdlib>
#include <time.h>
using namespace std;
int main(){
setlocale(LC_ALL, "Ukrainian");
int number,x;
cout << "Введiть число: ";
cin >> number;
int number1 = number;
while(number1 != 0){
x = x * 10 + number1 % 10;
number1 = number1 / 10;
}
cout << x << "*" << "10" << "=" << x * 10 << endl;
return 0;
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Відповідь:
#include <iostream>
#include <cstdlib>
#include <time.h>
using namespace std;
int main(){
setlocale(LC_ALL, "Ukrainian");
int number,x;
cout << "Введiть число: ";
cin >> number;
int number1 = number;
while(number1 != 0){
x = x * 10 + number1 % 10;
number1 = number1 / 10;
}
cout << x << "*" << "10" << "=" << x * 10 << endl;
return 0;
}