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
Best Challenge on Sololearn
+4
Author: Viraj Singh
Dark
Public
Save
PY
py
1
2
3
4
5
6
'''
prints n if n/6 is a cube and n/2 is a square
'''
for i in range(100):
print(6*(3*i**2)**3)
Enter to Rename, Shift+Enter to Preview
OUTPUT