CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
#include <math.h>
using namespace std;
void express(int p)
{
int n=0,temp;
while(p>0)
{
cout<<p%10<<"*";
cout<<pow(10,n)<<"=";
temp=(p%10)*pow(10,n++);
cout<<temp<<endl;
p/=10;
}
}
int main() {
int a;
a=657;
express(a);
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run