#include
using std::cout;
using std::cin;
using std::endl;
void test(int);
int main()
{
int number;
cout << "Enter the number: ";<br> cin >> number;
if(number < 1000)
{
cout << "Error" << endl;<br> }
else
test(number);
return 0;
}
void test(int number)
{
int a, b, c;
c = number % 10;
number /= 10;
b = number % 10;
number /= 10;
a = number % 10;
cout << a << " * " << b << " * " << c << " = " << (a * b *c) << endl;}</p>