язык не указан, пример на с++
#include <iostream>
using namespace std;
int main()
{
int abc;
int a;
int b;
int c;
cout << "Enter abc > ";
cin >> abc;
a = abc /100;
cout << "a = " << a<<endl;
b = (abc % 100) / 10;
cout << "b = " << b << endl;
c = abc % 10;
cout << "c = " << c << endl;
cout << "Double number : " << a * (b + c) << endl;
system("pause");
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
язык не указан, пример на с++
#include <iostream>
using namespace std;
int main()
{
int abc;
int a;
int b;
int c;
cout << "Enter abc > ";
cin >> abc;
a = abc /100;
cout << "a = " << a<<endl;
b = (abc % 100) / 10;
cout << "b = " << b << endl;
c = abc % 10;
cout << "c = " << c << endl;
cout << "Double number : " << a * (b + c) << endl;
system("pause");
return 0;
}