CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
challenge: https://www.sololearn.com/Discuss/1052375/?ref=app
suppose the number is 63.
1) 3*3 = 9
2) 2*6*3 = 36 ...keep 6 and pass 3 to the next part.
3) 6*6 = 36 +3 = 39
result = 3969
*/
#include <iostream>
using namespace std;
int main() {
int a;
cin >> a;
int b = a%10;
int c = a/10;
int d = b*b % 10;
int f;
if (b*b/10 != 0)
{
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run