Python Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start Python Course
Register
sumofsquares
+8
Author: Louis
Dark
Public
Save
PY
py
1
2
3
4
5
6
7
8
a=
int
(
input
())
print
(
a
,
end=
' = '
)
b=
[]
while
a>
0
:
c=
int
(
a**
0.5
)
b.append
(
c
)
a=a-
(
c*c
)
print
(
*b
[::
-1
],
sep=
chr
(
253
)
+
'+'
,
end=
chr
(
253
)
+
'\n'
)
Enter to Rename, Shift+Enter to Preview
OUTPUT